diff --git a/src/components/views/elements/Dropdown.tsx b/src/components/views/elements/Dropdown.tsx index 54154c7f7b..4a21898bed 100644 --- a/src/components/views/elements/Dropdown.tsx +++ b/src/components/views/elements/Dropdown.tsx @@ -222,14 +222,22 @@ export default class Dropdown extends React.Component { this.close(); break; case Key.ARROW_DOWN: - this.setState({ - highlightedOption: this.nextOption(this.state.highlightedOption), - }); + if (this.state.expanded) { + this.setState({ + highlightedOption: this.nextOption(this.state.highlightedOption), + }); + } else { + this.setState({ expanded: true }); + } break; case Key.ARROW_UP: - this.setState({ - highlightedOption: this.prevOption(this.state.highlightedOption), - }); + if (this.state.expanded) { + this.setState({ + highlightedOption: this.prevOption(this.state.highlightedOption), + }); + } else { + this.setState({ expanded: true }); + } break; default: handled = false;