Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t-rich-select default selected option. #225

Open
yubarajshrestha opened this issue Aug 25, 2021 · 2 comments
Open

t-rich-select default selected option. #225

yubarajshrestha opened this issue Aug 25, 2021 · 2 comments

Comments

@yubarajshrestha
Copy link

Unable to add default selected value for t-rich-select when fetch-options is enabled. Is there any proper documents on how we can add default select option or is there any way we can trigger fetch-options on component load to load the default list.

@gijsmooren
Copy link

A quick work around is to set the selectedOption/selectedOptions manually:

mounted() {
    this.$refs.myRichSelect.selectedOptions = this.$refs.myRichSelect.normalizeOptions(options)
}

If I have time I will look into the code of this project to make a PR

@demesiooliveira
Copy link

Hey guys

I have a similar problem, I have a form that uses rich text, but when I edit the information I can't load the field's information.

Does anyone have any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants