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
I'm binding the options of VaSelect to data returned from an API, which is fine, and I can link server filtering to the VaSelect search option to narrow the options. The data is an array of objects, so I'm using the textBy and valueBy options.
The problem I've got is when the model value of the VaSelect doesn't exist in the initial options (which is generally an empty array), I get a warning: [VaSelect]: can not find option in options list ([]) by provided value (...)
Any suggestions on how best to handle this? I can try pre-fetching the object matching the model value, b ut obviously that's an async operation and I can't figure out how to get the things to work.
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
-
I'm binding the options of VaSelect to data returned from an API, which is fine, and I can link server filtering to the VaSelect search option to narrow the options. The data is an array of objects, so I'm using the textBy and valueBy options.
The problem I've got is when the model value of the VaSelect doesn't exist in the initial options (which is generally an empty array), I get a warning:
[VaSelect]: can not find option in options list ([]) by provided value (...)
Any suggestions on how best to handle this? I can try pre-fetching the object matching the model value, b ut obviously that's an async operation and I can't figure out how to get the things to work.
Beta Was this translation helpful? Give feedback.
All reactions