DigitalRiver / react-atlas

Composable React components with CSS Modules.
http://digitalriver.github.io/react-atlas/
MIT License
38 stars 25 forks source link

Input components: Add defaultValue prop, Change value prop to "controlled" indicator #792

Closed Darper closed 6 years ago

Darper commented 6 years ago

To avoid flipping between controlled and uncontrolled inputs, use the value prop to indicate that the input is controlled (ignore state updates). Add a defaultValue prop for uncontrolled usage so that applications can set initial value.