Added check for if node exists before handleKeyDown on PopoverBase

• Added:
- check for if node exists before handleKeyDown on PopoverBase
This commit is contained in:
Developer 2021-02-18 17:21:02 -05:00
parent c85ad3e92a
commit 7000902ecb
1 changed files with 2 additions and 0 deletions

View File

@ -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