MCPcopy Index your code
hub / github.com/Lobos/react-ui / constructor

Function constructor

src/Select.js:19–33  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

17
18class 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)) {

Callers

nothing calls this directly

Calls 2

toArrayFunction · 0.90
formatDataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…