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
I believe $nextTick() is being triggered before Alpine has made its reactive DOM updates.
I've got a dropdown component that when it is opened it scrolls to the currently selected item or to the top of the list. This is the code that handles it:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I believe $nextTick() is being triggered before Alpine has made its reactive DOM updates.
I've got a dropdown component that when it is opened it scrolls to the currently selected item or to the top of the list. This is the code that handles it:
The problem is when I introduce transitions it stops working.
If I leave the transitions in place and replace $nextTick with setTimeout it works again albeit a bit hacky.
Beta Was this translation helpful? Give feedback.
All reactions