UI: Suppress "Attempted to select a non-interactive or hidden tab" warnings

This commit is contained in:
oobabooga 2025-08-28 17:46:29 -07:00
parent cb8780a4ce
commit d9eec31886

View file

@ -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);
};
})();