Skip to content

How to programmatically set t-rich-select value when using ajax #29

Description

@louisjeck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions