diff --git a/app/javascript/gabsocial/components/popover/popover_base.js b/app/javascript/gabsocial/components/popover/popover_base.js index db08b6ec..4dc21e52 100644 --- a/app/javascript/gabsocial/components/popover/popover_base.js +++ b/app/javascript/gabsocial/components/popover/popover_base.js @@ -38,6 +38,8 @@ class PopoverBase extends ImmutablePureComponent { } handleKeyDown = (e) => { + if (!this.node) return + const items = Array.from(this.node.getElementsByTagName('a')) const index = items.indexOf(document.activeElement) let element