The Wayback Machine - https://web.archive.org/web/20200616130414/https://github.com/vuetifyjs/vuetify/issues/10953
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

[Bug Report] Combobox reseting search-input #10953

Open
no0by5 opened this issue Mar 27, 2020 · 1 comment
Open

[Bug Report] Combobox reseting search-input #10953

no0by5 opened this issue Mar 27, 2020 · 1 comment

Comments

@no0by5
Copy link

@no0by5 no0by5 commented Mar 27, 2020

Environment

Vuetify Version: 2.2.19
Vue Version: 2.6.11
Browsers: Firefox 74.0
OS: Windows 10

Steps to reproduce

  1. Enter input
  2. Press Enter

Expected Behavior

Search text should disappear.

Actual Behavior

As logged in the console, the search text is set to empty string in handleChange and reset to the old value after it.

Reproduction Link

https://codepen.io/no0by5/pen/zYGyqdm

@bhaskar-nair2
Copy link
Contributor

@bhaskar-nair2 bhaskar-nair2 commented Apr 10, 2020

You just need to use the $nextTick function here

handleChange(items) {
 this.$nextTick(function(){
   this.searchText = "";
   this.selected = "";
 });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.