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

Dropkick does not correctly handle selects with optgroups #475

Open
adamgruber opened this issue Dec 3, 2020 · 0 comments
Open

Dropkick does not correctly handle selects with optgroups #475

adamgruber opened this issue Dec 3, 2020 · 0 comments

Comments

@adamgruber
Copy link

adamgruber commented Dec 3, 2020

Version of Dropkick:

2.2.5 (Observed in prior versions as well)

Expected Behavior

When opening the dropdown, the selected item should be in view.

Actual Behavior

When <optgroup>s are used, the selected item may not appear in view when the dropdown is opened.

Steps To Reproduce:

  1. Run dropkick on a <select> that uses one or more <optgroup>s
  2. Select an item in the list
  3. Open the dropdown again and observe the selected item is not in view

JSBin / Example repo / Failing test:

https://github.com/adamgruber/dropkick-optgroup-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant