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 currently using t-rich-select with fetch-options to search people in my database. I also use the dropdownButton (which btw doesn't have the props like dropdownDown used to) slot to show a quick add modal. Once the modal is closed and the new person saved to database, I'd like to show it as selected. I also need to be able to set a default value when the page loads.
I've looked in the source, created a ref and tried to call the selectOption method but I can seem to get it to work.
How should I proceed ?
Thanks
The text was updated successfully, but these errors were encountered:
And adding an option to the options prop array after onMounted hook also doesn't show the option. If I set during setup then I can have a default value. But I'd like to dynamically add an option and select it later.
I'm currently using
t-rich-select
withfetch-options
to search people in my database. I also use thedropdownButton
(which btw doesn't have the props likedropdownDown
used to) slot to show a quick add modal. Once the modal is closed and the new person saved to database, I'd like to show it as selected. I also need to be able to set a default value when the page loads.I've looked in the source, created a
ref
and tried to call theselectOption
method but I can seem to get it to work.How should I proceed ?
Thanks
The text was updated successfully, but these errors were encountered: