diff --git a/docs/source/about/changelog.rst b/docs/source/about/changelog.rst index 04d426a6b..325481f9a 100644 --- a/docs/source/about/changelog.rst +++ b/docs/source/about/changelog.rst @@ -20,15 +20,16 @@ Unreleased **Fixed** -- :pull:`1118` - `module_from_template` is broken with a recent release of `requests` -- :pull:`1131` - `module_from_template` did not work when using Flask backend -- :pull:`1200` - Fixed `UnicodeDecodeError` when using `reactpy.web.export` +- :pull:`1118` - ``module_from_template`` is broken with a recent release of ``requests`` +- :pull:`1131` - ``module_from_template`` did not work when using Flask backend +- :pull:`1200` - Fixed ``UnicodeDecodeError`` when using ``reactpy.web.export`` - :pull:`1224` - Fixes needless unmounting of JavaScript components during each ReactPy render. +- :pull:`1126` - Fixed missing ``event["target"]["checked"]`` on checkbox inputs **Added** - :pull:`1165` - Allow concurrently rendering discrete component trees - enable this - experimental feature by setting `REACTPY_ASYNC_RENDERING=true`. This improves + experimental feature by setting ``REACTPY_ASYNC_RENDERING=true``. This improves the overall responsiveness of your app in situations where larger renders would otherwise block smaller renders from executing. diff --git a/src/js/packages/event-to-object/src/index.ts b/src/js/packages/event-to-object/src/index.ts index 9a40a2128..22fb7154d 100644 --- a/src/js/packages/event-to-object/src/index.ts +++ b/src/js/packages/event-to-object/src/index.ts @@ -303,7 +303,10 @@ const elementConverters: { [key: string]: (element: any) => any } = { FORM: (element: HTMLFormElement) => ({ elements: Array.from(element.elements).map(convertElement), }), - INPUT: (element: HTMLInputElement) => ({ value: element.value }), + INPUT: (element: HTMLInputElement) => ({ + value: element.value, + checked: element.checked, + }), METER: (element: HTMLMeterElement) => ({ value: element.value }), OPTION: (element: HTMLOptionElement) => ({ value: element.value }), OUTPUT: (element: HTMLOutputElement) => ({ value: element.value }),