From e0838198e828329e5c2442341ab6ed3bc0524104 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Sat, 31 May 2025 15:49:33 +1200 Subject: [PATCH] Click a temp div on fullscreen to force button state change --- materialious/src/lib/components/Player.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/materialious/src/lib/components/Player.svelte b/materialious/src/lib/components/Player.svelte index 33bbf8cd..79cf6f4e 100644 --- a/materialious/src/lib/components/Player.svelte +++ b/materialious/src/lib/components/Player.svelte @@ -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