Skip to content

selected Chioce is not highlighted #1290

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

Open
bforpc opened this issue Mar 17, 2025 · 2 comments
Open

selected Chioce is not highlighted #1290

bforpc opened this issue Mar 17, 2025 · 2 comments

Comments

@bforpc
Copy link

bforpc commented Mar 17, 2025

Hi devs,

I add choices to the "select" and after that the one who should be selected, will be set with

addressDropDown.setChoiceByValue(data.dms.ADDRESS_ID);
This is working fine. But the selected above will not highlight the item in the dropdown list also.
How can i do that?

Best regards from Hamburg, Germany.

Bfo

@Xon
Copy link
Collaborator

Xon commented Mar 19, 2025

Can you recreate a Minimal reproducible example using https://jsfiddle.net ?

@tnelson0406
Copy link

I'm having this issue as well. If I select a choice using setChoiceByValue and then open the select, then the first choice is always highlighted, rather than the actual selection. Pictured is a screenshot of an example, just after opening the select:

Image

It appears the actual element has the expected option marked as selected. But the choicesjs dropdown choices have not been properly updated.

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

No branches or pull requests

3 participants