Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling gets stuck in Safari when multiple select has options selected #331

Open
fausto1389 opened this issue Apr 26, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@fausto1389
Copy link

When there is a multiple type select that already has selected options; scrolling in Safari, the option with focus generates a stop that prevents further scrolling in the drop-down list.
I attach a video with the evidence.

Grabacion.de.pantalla.2024-04-26.a.la.s.9.44.55.a.m.mov
@kjmitch
Copy link

kjmitch commented Apr 26, 2024

I'm seeing behavior similar to this in Firefox 125.0b9 and Chrome 124.0.6367.92 on Windows 10. I'm not sure if it's the same situation; Once I make a single selection, I can scroll down manually using the thumb in the scrollbar, but then when I hover over the menu items again it scrolls up automatically.

The scrolling up seems to respond faster to my cursor hovering over higher items on the list, as if there's a trigger I'm activating on the menu's top half. The menus I'm seeing this on have option groups one level deep, multiple select enabled, and the focusSelectedOptionOnOpen property set to false.

I also have event listeners attached to some of the Virtual Select elements that are doing this; these listeners' callbacks affect other elements on the page when the change event is dispatched, based on the selected value(s) in the VS menu. I had wondered if maybe the VS element is losing focus and whether that could cause the scrolling to fail on the opened drop-down box.

@kjmitch
Copy link

kjmitch commented Jun 10, 2024

I just downgraded this library to make sure the issue I was dealing with isn't present in my webapp. I narrowed it down and found that my issue seems to have been introduced in version 1.0.41, so rolling my CDN import back to 1.0.40 removed the issue for me. Not sure if that would remove OP's issue as well, though my issue did include the problems they mentioned.

@gnbm gnbm added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants