From edd03e785ca3b12ce358e20821cc1e5d92b2b8f9 Mon Sep 17 00:00:00 2001 From: Pieter Lambrecht Date: Fri, 18 Mar 2022 11:35:23 +0100 Subject: [PATCH] Fixes #7839 Focus on searchbar --- netbox/project-static/dist/netbox.js | Bin 375602 -> 375689 bytes netbox/project-static/dist/netbox.js.map | Bin 344930 -> 344974 bytes netbox/project-static/src/netbox.ts | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 45abd19e6209158d93fbe083fce3e1de985a9f5e..9215625c8fb226f5e579c58280312ec7ea75ef82 100644 GIT binary patch delta 76 zcmdn=O|0{~SVIeA3sVbo3(FQ(|1FaX+r&5(ZEf>Pb8^(wKs*J#lEies#N1T9lKjwu dg481C#Nt#9O`sYjPrrcB5T)(DTUej60RS!?8lnII delta 25 hcmeDDF1G2LSVIeA3sVbo3(FQ(|1H~>ZDD=P1^|zY3aS7A diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index c7e20fe9ae4893f6bbbbd26ccb95f35b556214cb..780aa7e03374df2df8ae9fdfa76d0d85132c86b1 100644 GIT binary patch delta 72 zcmaFVCfe67+R(z-!qmdt!m@?+kCVP*piZ!(W3W!TlcQs%la8+=Od#3OFb%7 delta 28 jcmeBc7k$(w+R(z-!qmdt!m@?+j}x('.content-container'); - if (contentContainer !== null) { - // Focus the content container for accessible navigation. + 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(); } }