()
| 41 | }, |
| 42 | |
| 43 | componentDidMount() { |
| 44 | const {multi, defaultSelected, valueName} = this.props; |
| 45 | const {options, value} = this.state; |
| 46 | if (!multi && !value && defaultSelected && options.length > 0) { |
| 47 | this.setState({ |
| 48 | value: options[0][valueName] |
| 49 | }); |
| 50 | } |
| 51 | }, |
| 52 | |
| 53 | formatValue(val, callback){ |
| 54 | let newVal = val, oldVal = this.state.value; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…