Skip to content

Conversation

@Soean
Copy link
Member

@Soean Soean commented Nov 17, 2017

Description

Adds a selected attribute to define the default value for the radio-control and select-control.

value={ option.value }
onChange={ onChangeValue }
selected={ option.value === selected }
defaultChecked={ option.value === selected }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this change? we're using "value" to make the radio control "controllable". Same for the select one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants