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

Use previosly selected as text in search #1722

Open
kozubov opened this issue Sep 13, 2023 · 1 comment
Open

Use previosly selected as text in search #1722

kozubov opened this issue Sep 13, 2023 · 1 comment

Comments

@kozubov
Copy link

kozubov commented Sep 13, 2023

Is it possible to use selected item text as a filled input when I start search after selecting item in single select?

for example:

  1. I selected item with text Ruby Rose
  2. I click on field and search input appear.
  3. 'Ruby Rose' filled in search input and I can edit it to search
@lehoaibaokg
Copy link

lehoaibaokg commented Dec 19, 2023

We can archive that using the steps below:

  • Use ref like ref="multiselect"
  • Use open event to check when the dropdown opens
  • In the callback function of open event, assign the selected value label (from v-model or custom-label prop) to this.$refs.multiselect.search

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

2 participants