Choices icon indicating copy to clipboard operation
Choices copied to clipboard

Selected item is not the highlighted item when initializing the select

Open jclusso opened this issue 4 years ago • 1 comments

Describe the bug The selected option is not the highlighted choice when you initialize a select and view the choices. This is the way the native select works and what I've typically seen on all other custom selects.

To Reproduce Steps to reproduce the behavior:

  1. Create a Choices.js select with the last option selected
  2. Click on the select
  3. The first item is highlighted and marked as selected even though this isn't the selected option

Expected behavior The selected option should be the selected choice when opening the select.

Screenshots image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 80.0.3987.149

jclusso avatar Apr 08 '20 03:04 jclusso

I expected this item to be highlighted too. I've got a workaround here https://github.com/Choices-js/Choices/issues/586#issuecomment-1164127267

mattgreenfield avatar Jun 23 '22 08:06 mattgreenfield