Click a temp div on fullscreen to force button state change

This commit is contained in:
WardPearce
2025-05-31 15:49:33 +12:00
parent f13480fabb
commit e0838198e8
@@ -315,6 +315,10 @@
(button as HTMLElement).blur(); // Remove focus from the button
button.removeAttribute('aria-pressed'); // Reset any ARIA attributes that might indicate selection
});
const tempDiv = document.createElement('div');
tempDiv.click();
document.removeChild(tempDiv);
});
// Based off the following