Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added checked: element.checked to INPUT in elementConverters #1126

9 changes: 5 additions & 4 deletions docs/source/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 4 additions & 1 deletion src/js/packages/event-to-object/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down
Loading