handle null or undefined

This commit is contained in:
Tony Brix
2019-01-16 14:08:29 -06:00
parent 4ba47b59d6
commit 04234bd95a

View File

@@ -54,7 +54,7 @@ class PanelContainerElement extends HTMLElement {
if (visible) { this.hideAllPanelsExcept(panel) }
}))
if (panel.autoFocus !== false) {
if (panel.autoFocus) {
const focusOptions = {
// focus-trap will attempt to give focus to the first tabbable element
// on activation. If there aren't any tabbable elements,