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:
parent
c85ad3e92a
commit
7000902ecb
|
@ -38,6 +38,8 @@ class PopoverBase extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleKeyDown = (e) => {
|
handleKeyDown = (e) => {
|
||||||
|
if (!this.node) return
|
||||||
|
|
||||||
const items = Array.from(this.node.getElementsByTagName('a'))
|
const items = Array.from(this.node.getElementsByTagName('a'))
|
||||||
const index = items.indexOf(document.activeElement)
|
const index = items.indexOf(document.activeElement)
|
||||||
let element
|
let element
|
||||||
|
|
Loading…
Reference in New Issue