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 noticed that the Select machine always runs the scrollContentToTop action when exiting the open state, while triggering the scrollToHighlightedItem effect when entering the open state. When an exit animation is used for the content part, this makes the content element scroll to the top before the exit animation has finished (unless I hack my way around it in the scrollToIndexFn). I'm wondering about the reasoning behind always scrolling to the top on close instead of only scrolling to the top on open when necessary (like we're scrolling to the highlighted item too). The latter alternative would work with exit animations out of the box. Am I missing something obvious here?
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 noticed that the Select machine always runs the
scrollContentToTop
action when exiting theopen
state, while triggering thescrollToHighlightedItem
effect when entering theopen
state. When an exit animation is used for thecontent
part, this makes the content element scroll to the top before the exit animation has finished (unless I hack my way around it in thescrollToIndexFn
). I'm wondering about the reasoning behind always scrolling to the top on close instead of only scrolling to the top on open when necessary (like we're scrolling to the highlighted item too). The latter alternative would work with exit animations out of the box. Am I missing something obvious here?Beta Was this translation helpful? Give feedback.
All reactions