You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Material UI theme, the select drop down will always display a value of "No", all change events show the formData has a value of false for the field, regardless of what was selected. This appears to be an issue with the @rjsf/material-ui library, the provided example works as expected when using the default theme.
Prerequisites
Description
When using the Material UI theme, the select drop down will always display a value of "No", all change events show the formData has a value of
false
for the field, regardless of what was selected. This appears to be an issue with the @rjsf/material-ui library, the provided example works as expected when using the default theme.This seems to be caused by https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/material-ui/src/SelectWidget/SelectWidget.tsx#L25 where it fails a strict equality check of the value; the function is given a boolean
true
orfalse
, which is never equal to"true"
. It appears the same problem was encountered by https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/semantic-ui/src/SelectWidget/SelectWidget.js#L44Steps to Reproduce
default
tomaterial-ui
Expected behavior
Selecting
Yes
causes it to be selected/reselectedActual behavior
No
is always selected/reselected regardless of choiceVersion
"@rjsf/[email protected]",
"@rjsf/[email protected]",
The text was updated successfully, but these errors were encountered: