diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index c1116d1dc..9215625c8 100644 Binary files a/netbox/project-static/dist/netbox.js and b/netbox/project-static/dist/netbox.js differ diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index a5ba2036c..780aa7e03 100644 Binary files a/netbox/project-static/dist/netbox.js.map and b/netbox/project-static/dist/netbox.js.map differ diff --git a/netbox/project-static/src/netbox.ts b/netbox/project-static/src/netbox.ts index 656ed56e5..25a439eac 100644 --- a/netbox/project-static/src/netbox.ts +++ b/netbox/project-static/src/netbox.ts @@ -38,7 +38,7 @@ function initDocument(): void { function initWindow(): void { const contentContainer = document.querySelector('.content-container'); - if (contentContainer !== null && document.activeElement.tagName.toUpperCase() !== 'INPUT') { + if (contentContainer !== null && document.activeElement !==null && document.activeElement.tagName.toUpperCase() !== 'INPUT') { // Focus the content container for accessible navigation, unless an input item has focus contentContainer.focus(); }