From 25217c0ee8b150b5278382f73542a87796fd976e Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 25 Sep 2022 20:44:26 -0500 Subject: [PATCH] Fixed: TypeError on Keyup in Firefox for IndexerIndex --- frontend/src/Indexer/Index/IndexerIndex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Indexer/Index/IndexerIndex.js b/frontend/src/Indexer/Index/IndexerIndex.js index 841bc1c00..e8057147c 100644 --- a/frontend/src/Indexer/Index/IndexerIndex.js +++ b/frontend/src/Indexer/Index/IndexerIndex.js @@ -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] }); }