From 224ee05b62c2b3e818b7bcb19f4b7f13b7357162 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 15 Dec 2019 15:07:49 +0000 Subject: [PATCH] this is a combobox, HOME/END should pertain to the input, not selection --- src/components/views/elements/Dropdown.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/components/views/elements/Dropdown.js b/src/components/views/elements/Dropdown.js index 72e6cf19b3..9b4181fe68 100644 --- a/src/components/views/elements/Dropdown.js +++ b/src/components/views/elements/Dropdown.js @@ -221,16 +221,6 @@ export default class Dropdown extends React.Component { highlightedOption: this._prevOption(this.state.highlightedOption), }); break; - case Key.HOME: - this.setState({ - highlightedOption: this._firstOption(), - }); - break; - case Key.END: - this.setState({ - highlightedOption: this._lastOption(), - }); - break; } } @@ -278,16 +268,6 @@ export default class Dropdown extends React.Component { return keys[(index - 1) % keys.length]; } - _firstOption() { - const keys = Object.keys(this.childrenByKey); - return keys[0]; - } - - _lastOption() { - const keys = Object.keys(this.childrenByKey); - return keys[keys.length - 1]; - } - _scrollIntoView(node) { if (node) { node.scrollIntoView({