fix: Dropdown component so that re-clicking the activeNode when dropdown is open, closes it
This commit is contained in:
@@ -100,7 +100,7 @@ export class DropDown extends React.Component<DropDownProps, DropDownState> {
|
||||
private _onActiveNodeClick(event: React.FormEvent<HTMLInputElement>): void {
|
||||
if (this.props.activateEvent === DropdownMouseEvent.Click) {
|
||||
this.setState({
|
||||
isDropDownOpen: true,
|
||||
isDropDownOpen: !this.state.isDropDownOpen,
|
||||
anchorEl: event.currentTarget,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user