fix(web): reset cursor style when slideshow bar unmounts (#27521)

This commit is contained in:
Min Idzelis
2026-04-06 08:07:49 -04:00
committed by GitHub
parent 9bcce59719
commit 564065a3ed
2 changed files with 1 additions and 1 deletions
@@ -276,7 +276,6 @@
const handleStopSlideshow = async () => { const handleStopSlideshow = async () => {
try { try {
if (document.fullscreenElement) { if (document.fullscreenElement) {
document.body.style.cursor = '';
await document.exitFullscreen(); await document.exitFullscreen();
} }
} catch (error) { } catch (error) {
@@ -85,6 +85,7 @@
}); });
onDestroy(() => { onDestroy(() => {
setCursorStyle('');
if (unsubscribeRestart) { if (unsubscribeRestart) {
unsubscribeRestart(); unsubscribeRestart();
} }