Hey everyone, I had an issue reported to me by an end user and is reproducible on the select2 documentation site.
Instructions to reproduce:
- On the Multi-select boxes (pillbox) example, open the select box.
- Scroll down the list to Hawaii. Hold the Control key on your keyboard and select Hawaii.
- Release Control key and scroll down the list.
- Scroll down the list to Oregon. Hold the Control key and select Oregon.
- You should now be back to Hawaii being displayed in the list.
I have tested this against:
- Chrome 62
- Firefox 57
- Edge 40
I’m not sure if this is the expected behavior to go back to the first selected option in the list, or if it’s a bug. When doing the reverse…starting from the bottom, you don’t notice the behavior because it always goes to the first selected option in the list.
This seems like a bug and was reported as such to me. I would expect it to stay right where it was on the newly selected option.
Thoughts?
Thanks,
Eric