My this.handleReset() does not working. Any idea, why?
<Dropdown options={this.state.options}
placeholder= "Bitte wählen..."
onChange={ this.handleChange }
required= {true}/>
<DefaultButton className={styles.btn2} onClick={()=> this.clearForm()}> Abbrechen </DefaultButton>
handleChange = (event: FormEvent<HTMLDivElement>, option: IDropdownOption): void => {
console.log("Selected Option: " + option.text)
this.setState({
selectedOption: option.text,
selectedValue: option.key.toString()
});
handleReset = () => {
this.setState({ selectedOption: "" });
public clearForm= (): void => {
this.handleReset();