diff --git a/src/components/views/elements/Dropdown.tsx b/src/components/views/elements/Dropdown.tsx index b4f382c9c3..86e0822b11 100644 --- a/src/components/views/elements/Dropdown.tsx +++ b/src/components/views/elements/Dropdown.tsx @@ -178,6 +178,14 @@ export default class Dropdown extends React.Component { this.ignoreEvent = ev; }; + private onChevronClick = (ev: React.MouseEvent) => { + if (this.state.expanded) { + this.setState({ expanded: false }); + ev.stopPropagation(); + ev.preventDefault(); + } + }; + private onAccessibleButtonClick = (ev: ButtonEvent) => { if (this.props.disabled) return; @@ -375,7 +383,7 @@ export default class Dropdown extends React.Component { onKeyDown={this.onKeyDown} > { currentValue } - + { menu } ;