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:
- Run dropkick on a
<select> that uses one or more <optgroup>s
- Select an item in the list
- 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
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:
<select>that uses one or more<optgroup>sJSBin / Example repo / Failing test:
https://github.com/adamgruber/dropkick-optgroup-issue