גלול לקטגוריה הנוכחית שבור החל מ-2.8.0.beta5

Hi Joffrey,

Thanks for continuing to look into this. With the current code changes (I’ve made sure to pull the latest code, clear tmp, and restart the development server), it has not regained the behavior that was present in versions before 2.8.0.beta5. It still currently no longer scrolls to show the current category at the top of the visible options in the drop down.

The correct/desired behavior is what is shown in the first video in the original post, however it currently is still working as in the second video. Currently the scrollbar always starts fully at the top, regardless of where the current category is in the options.

The line rowContainer?.focus({ preventScroll }); seems to have no effect in this case, regardless of if preventScroll is true, false, or even if the whole line is removed.

The essential line that makes the behavior work (not present in the current release) is:

collectionContainer.scrollTop =
          rowContainer.offsetTop - collectionContainer.offsetTop;

Without this, it does not scroll to the correct position, since scrollTop is 0 by default. After this line runs, scrollTop equals the correct number of pixels it needs to scroll down to.

Hopefully this is helpful. Please let me know if I can help clarify further.

Thanks!