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

Dropdown menu is flickering #763

Closed
ekuzmichev opened this issue Mar 11, 2014 · 2 comments
Closed

Dropdown menu is flickering #763

ekuzmichev opened this issue Mar 11, 2014 · 2 comments

Comments

@ekuzmichev
Copy link

I'm using only 'remote' without any prefetched and local data.
There is some latency in responses from my server ('remote'). So when I'm typing dropdown menu is being closed and opened every time per each query. This is very annoying.
I think the problem is here:

_onQueryChanged: function onQueryChanged(e, query) {
   this.input.clearHint();
   this.dropdown.empty();
   query.length >= this.minLength && this.dropdown.update(query);
   this.dropdown.open();
   this._setLanguageDirection();
},

If I apply such monkey patch the problem disappears.

_onQueryChanged: function onQueryChanged(e, query) {
   if (query.length == 0) {
      this.input.clearHint();
      this.dropdown.empty();
   }
   query.length >= this.minLength && this.dropdown.update(query);
   if (query.length > 0) {
      this.dropdown.open()
   };
   this._setLanguageDirection();
},

If needed I can create complete patch for this.

@zergood
Copy link

zergood commented Mar 11, 2014

@jharding
Copy link
Contributor

Duplicate of #176 which has been addressed in the v0.10.2. Should drop later this week.

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

No branches or pull requests

3 participants