(value)
| 104 | } |
| 105 | |
| 106 | setValue (value) { |
| 107 | value = toArray(value, this.props.mult ? this.props.sep : null); |
| 108 | if (this.state) { |
| 109 | let data = this.state.data.map((d) => { |
| 110 | if (typeof d !== 'string') { |
| 111 | d.$checked = value.indexOf(d.$value) >= 0; |
| 112 | } |
| 113 | return d; |
| 114 | }); |
| 115 | this.setState({ value, data }); |
| 116 | } else { |
| 117 | this.setState({ value }); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | formatData (data, value = this.state.value) { |
| 122 | if (!Array.isArray(data)) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…