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

Removing all character after keys do not reset the state of the items #69

Open
drocha87 opened this issue Feb 21, 2022 · 2 comments
Open

Comments

@drocha87
Copy link

I don't know if this is the expected behavior, but when I type @ to search for users for example and start typing everything works as expected, but if I remove everything until @ it let one character in the search string so we can't go back to the initial state where all users are available.

The problem happens in the demo in the official website demo

Animation

@drocha87
Copy link
Author

Seems like this if(value) is blocking the emit when removing all characters from searchText. Reference

watch(searchText, (value, oldValue) => {
  if (value) {
    emit('search', value, oldValue)
  }
})

Removing this if solved the issue to me.

@devmaslove
Copy link

Same problem

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