You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I am trying to create a Listbox where multiple values can be set. I would want to pass already selected values through props to the listbox and I would want the ListboxOptions to be formatted depending on wether they are selected or not. My code seems to be working fine but the first time I open the listbox the selected items don't get the selected formatting and the first selection overwrites the original slected values(instead of adding it or removing it from modelValue). After the first selection the component works as it supposed to. Is there a way to have multiple ListBox selected condition working from the beginning?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am trying to create a Listbox where multiple values can be set. I would want to pass already selected values through props to the listbox and I would want the ListboxOptions to be formatted depending on wether they are selected or not. My code seems to be working fine but the first time I open the listbox the selected items don't get the selected formatting and the first selection overwrites the original slected values(instead of adding it or removing it from modelValue). After the first selection the component works as it supposed to. Is there a way to have multiple ListBox selected condition working from the beginning?
Beta Was this translation helpful? Give feedback.
All reactions