mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
handle null or undefined
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user