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
{{ message }}
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
However, when you create the same button and pass in a component, the boolean value is translated to a string, and thus doesn't allow the button to be clicked.
import Radio from 'react-bootstrap/lib/Radio';
<Control.radio
component={Radio}
model=".choice"
value={false}
required
>Boolean false</Control.radio>
Steps to Reproduce
See reproduced example. Note that, in the top section, clicking the Boolean true option does nothing, and the Boolean false option matches the String false option. In the bottom section, all radio buttons work as expected.
Expected Behavior
Radio button behavior is consistent even when using custom controls.
Actual Behavior
Boolean values are converted to strings in state, and thus do not match the control value.