Skip to content

Doesn't listen property changes for option parameter #46

@acierto

Description

@acierto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions