noOptionsMessage Props not working
See original GitHub issueThe props noOptionsMessage not working, my implemention.
would it be a problem in the component or in my implementation? My version “react-select”: “^1.3.0”,
<Select value={this.props.value} onChange={this.onChange.bind(this)} options={this.state.options} searchable={this.props.searchable} onKeyDown={this.handleKeyDown.bind(this)} placeholder={this.props.label} clearable={this.props.clearable} noOptionsMessage={"Test"} />
or
<Select value={this.props.value} onChange={this.onChange.bind(this)} options={this.state.options} searchable={this.props.searchable} onKeyDown={this.handleKeyDown.bind(this)} placeholder={this.props.label} clearable={this.props.clearable} noOptionsMessage={() => return "Test"} />
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6
Top GitHub Comments
Now it’s:
noOptionsMessage={“No options”}