-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
After a transition has already been triggered, changing the delay of a transition does not take effect until after the transition has been triggered at least once.
To Reproduce
REPL: https://svelte.dev/repl/48114260160b40d7bcb2f0d2dc148eb6?version=3.38.3
- Click
Menuseveral times to toggle the default transition.
IMPORTANT: The bug requires triggering the transition at least once before the delay is cached. - Click
Set Delay to 1s, thedelayvariable is now set to1000. - Click
Menuto toggle the transition, delay has not taken effect. - Click
Menuto toggle the transition, delay now takes effect. - Click
Set Delay to 0, thedelayvariable is now set to0. - Click
Menuto toggle the transition, 1s delay still applies. - Click
Menuto toggle the transition, delay is now updated.
Expected behavior
I expect the delay to apply immediately, or at least applied after I do await tick().
Information about your Svelte project:
Svelte: 3.32.1, 3.38.3
Tested Browsers:
- Edge: Chromium (88.0.705.50)
- Chrome: 88.0.4324.104
- Firefox Dev: 86.0b5 (64-bit)
Severity
Low