-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Opening dropdown does not scroll to selected option first time, but does second time #2838
Comments
have you tried this version? Maybe works... I hope... https://gist.github.com/mattymatty76/c996d3b77f298b2ec133be59992df9d4 |
Nope, sorry. I've updated the JSFiddle, but the same issue is happening: |
Sorted! By adding the line in highlighted below, this fixed the issue in that when the dropdown opens, the list scrolls to the selected option so it displays in the middle. See updated JSFiddle (https://jsfiddle.net/cvnjmx20/).
|
…, but does second time Fix for issue: The dropdown renders with an option selected. But when I click to open the dropdown, it does not show the selected option, but instead the list is at the top. However, close the dropdown and click to open it again and this time it will be scrolled to the selected option. snapappointments#2838
Added PR #2841 |
I'm using Beta 2 to demonstrate this bug, because I cannot run the "dev" version on JSFiddle that fixes the LabelLabel bug from Beta 3.
The dropdown renders with an option selected. But when I click to open the dropdown, it does not show the selected option, but instead the list is at the top. However, close the dropdown and click to open it again and this time it will be scrolled to the selected option.
https://jsfiddle.net/rg2psc1n/
The text was updated successfully, but these errors were encountered: