Fixed: TypeError on Keyup in Firefox for IndexerIndex

This commit is contained in:
Qstick
2022-09-25 20:44:26 -05:00
committed by GitHub
parent 791592927c
commit 25217c0ee8

View File

@@ -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] });
}