You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below is supposed to change the clientHeight of the div when the button is pressed and then console.log the original and the new height. According to the svelte documentation, you can "use tick to ensure that the UI is updated before continuing". But it doesn't work and still console.logs the original height. If you replace the tick function call in line 14 with my crude customTick function, it seems to work fine.
Describe the bug
The code below is supposed to change the
clientHeight
of thediv
when thebutton
is pressed and thenconsole.log
the original and the new height. According to the svelte documentation, you can "usetick
to ensure that the UI is updated before continuing". But it doesn't work and stillconsole.log
s the original height. If you replace thetick
function call in line 14 with my crudecustomTick
function, it seems to work fine.Reproduction
Svelte Playground
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: