rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

Doesn't listen property changes for option parameter #46

Closed acierto closed 8 years ago

acierto commented 8 years ago

Create wrapper component, which contain something like that:

... render() { return <Select2 defaultValue={this.state.selectedValue} data={this.props.selectData} onChange={(e) => this.onSelection(e.target.value)} options={{disabled: this.props.disabled}} /> } Then create some toggler, which will change disabled from false to true. Select2 renders the first state of disabling correctly, but afterwards ignores updates of this property.

rkit commented 8 years ago

Please check new release 1.0.2. Thanks for PR and bug report.