0
Ich erwarte onChange Event Feuer, wenn ich ein Element in Dropdown-Komponente auswählen. Das Ereignis onChange wird jedoch ausgelöst, selbst wenn ich auf eine andere Stelle klicke. Wie kann verhindert werden, dass onChange Ereignisfeuer onBlur?Wie verhindert OnChange Ereignis Feuer onBlur in Semantic-Ui-Reaktion
handleDomainChange = (e, data) => {
this.setState({
currantDomain_id: data.value,
currantWidget_id: "null",
},() => {
this.props.dispatch(
statsFetch(
this.props.viewRange,
this.state.currantDomain_id,
this.state.currantWidget_id
)
);
this.widgetsDropdownOptions();
});
}
const DropdownDomains =() => (
<Dropdown
placeholder='all domains'
className="dropdown-title"
value={this.state.currantDomain_id}
selection
options={this.domainsDropdownOptions()}
onChange={this.handleDomainChange}
onBlur={this.nothing}
/>
)