Fixed: TypeError on Keyup in Firefox for IndexerIndex

pull/1121/head
Qstick 2 years ago committed by GitHub
parent 791592927c
commit 25217c0ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -221,7 +221,7 @@ class IndexerIndex extends Component {
onKeyUp = (event) => {
const jumpBarItems = this.state.jumpBarItems.order;
if (event.path.length === 4) {
if (event.composedPath && event.composedPath().length === 4) {
if (event.keyCode === keyCodes.HOME && event.ctrlKey) {
this.setState({ jumpToCharacter: jumpBarItems[0] });
}

Loading…
Cancel
Save