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

search field does not clear #99

Closed
evan4 opened this issue Jul 31, 2021 · 5 comments
Closed

search field does not clear #99

evan4 opened this issue Jul 31, 2021 · 5 comments

Comments

@evan4
Copy link

evan4 commented Jul 31, 2021

Version

  • Vue version: 3

Description

Hello, I use option :searchable="true" It is work, but when I click on item of list , selected word does not change. It is still same letter what I wrote in search field In example the same behavior. Is it possible to replace my search word to item from list?
It is a bug in your demo also

@Libertie
Copy link

Libertie commented Aug 3, 2021

Yes, this is very important to usability. Without the selected option's label displaying, it appears as though nothing has been selected.

@Libertie
Copy link

Libertie commented Aug 4, 2021

As a work around, I am manually clearing the search field with clearSearch(), which causes the selected label to appear. I believe that this should be default behavior.

<template>
  <Multiselect
    ref="multiselect"
    @select="$refs.multiselect.clearSearch()"
    ...
  />
</template>

@evan4
Copy link
Author

evan4 commented Aug 4, 2021

It's works. Thank you Libertie for your help!

@adamberecz
Copy link
Collaborator

Thanks for reporting. Fixed in 2.1.1

@tanaki
Copy link

tanaki commented Apr 4, 2022

It doesn't work for me on 2.3.3. It looks like the fix is gone on the source file ?

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

4 participants