We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f36d7 commit 6cc7131Copy full SHA for 6cc7131
components/SelectDropdown/SelectDropdown.jsx
@@ -8,7 +8,11 @@ import Dropdown from '../Dropdown/Dropdown'
8
class SelectDropdown extends Component {
9
constructor(props) {
10
super(props)
11
- this.state = _.assign(this.state, { selectedOption : null })
+ let option = null
12
+ if(props && props.options && props.value) {
13
+ option = _.find(props.options, {value: props.value})
14
+ }
15
+ this.state = _.assign(this.state, { selectedOption : option })
16
}
17
18
handleClick(option) {
0 commit comments