(props)
| 17 | |
| 18 | class Select extends ClickAway(Component) { |
| 19 | constructor (props) { |
| 20 | super(props); |
| 21 | |
| 22 | let values = toArray(props.value, props.mult ? props.sep : undefined); |
| 23 | let data = this.formatData(props.data, values); |
| 24 | this.state = { |
| 25 | active: false, |
| 26 | data, |
| 27 | filter: '', |
| 28 | value: values |
| 29 | }; |
| 30 | |
| 31 | this.showOptions = this.showOptions.bind(this); |
| 32 | this.hideOptions = this.hideOptions.bind(this); |
| 33 | } |
| 34 | |
| 35 | componentWillReceiveProps (nextProps) { |
| 36 | if (!deepEqual(nextProps.value, this.props.value)) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…