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
I'm currently using
t-rich-selectwithfetch-optionsto search people in my database. I also use thedropdownButton(which btw doesn't have the props likedropdownDownused 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
refand tried to call theselectOptionmethod but I can seem to get it to work.How should I proceed ?
Thanks