transition:fade|global
leaves the block visible in the off state
#15604
Labels
transition:fade|global
leaves the block visible in the off state
#15604
Describe the bug
I'm working on a fairly complex UI and below is a highly simplified example of what causes the error.
Here's what's going on:
fetching = false
andisShown = true
.isShown = false
and redirect to the same page (in the real app the page is different).fetching = true
and after 50ms we setfetching = false
(emulate the request).The red square is expected to be hidden since
fetching = false
andisShown = false
, but it remains visible.Note that the inner red block is used with the
global
modifier. In the real app this code is in a separate component.iShot_2025-03-25_01.02.26.mp4
Reproduction
Repro (Svelte 5.25.3 / SvelteKit 2.20.2) ❌
Severity
annoyance
The text was updated successfully, but these errors were encountered: