From d9eec31886246d5501b6502457c917fb46e9e748 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 28 Aug 2025 17:46:29 -0700 Subject: [PATCH] UI: Suppress "Attempted to select a non-interactive or hidden tab" warnings --- js/global_scope_js.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/global_scope_js.js b/js/global_scope_js.js index ebed1f3d..89b51d67 100644 --- a/js/global_scope_js.js +++ b/js/global_scope_js.js @@ -372,3 +372,18 @@ observer.observe(document.documentElement, { subtree: true, attributeFilter: ["style"] }); + +//------------------------------------------------ +// Suppress "Attempted to select a non-interactive or hidden tab" warning +//------------------------------------------------ +(function() { + const originalWarn = console.warn; + + console.warn = function(...args) { + if (args[0] && args[0].includes("Attempted to select a non-interactive or hidden tab")) { + return; + } + + originalWarn.apply(console, args); + }; +})();