-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Hi
I am having problems with the little x in the select bar. I tried to leave it and I tried to disable it and both don't work.
When I hit the x it just errors out saying "null value"
var formatTypeOptions = [
{ value: 'CSV', label: 'CSV', clearableValue: false },
{ value: 'XML', label: 'Excel', clearableValue: false }
];
<Select id="formats" placeholder="choose"
name="formats"
value={this.state.format}
options={formatTypeOptions}
onChange={(event) => this.formatChange(event)}
/>
formatChange(event) {
this.setState({ hide: false, format: event.value, hasErrors: false });
}
First I set it clearableValue to false so I would think it would not show up but it does, when I click on it and fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels