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
Im using the Select component where I provide the options a in a each block; the each block iterates over an array of class/objects and I provide a enum string value to the text and value props on a SelectItem component. On:Update I send the dispatch the event. The problem is the event is sometimes sending the object i am iterating over and not a string in the event; which is causing an error. I can get around it with a type check, but the docs say the update event should string | number, so was wondering if anyone had any input?
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
-
Im using the Select component where I provide the options a in a each block; the each block iterates over an array of class/objects and I provide a enum string value to the text and value props on a SelectItem component. On:Update I send the dispatch the event. The problem is the event is sometimes sending the object i am iterating over and not a string in the event; which is causing an error. I can get around it with a type check, but the docs say the update event should string | number, so was wondering if anyone had any input?
Beta Was this translation helpful? Give feedback.
All reactions