mardi 31 mars 2015

laggy typing when binding a text input to compute a filtered list in Ember

I have an Ember application in which I have an input bound to property query. There is a computed property filteredRecords that uses query to filter the model to build an array of records display. The model contains a large number of records so there is some lag in the filtering process. This lag is OK, but I find that the typing into the search bar is also laggy. It seems that the rerendering of the list is getting in the way of text being rendered into the search bar. Is there a way to give the search bar "priority" such that typing into it is always smooth, even if the list takes a second or two to update?





Aucun commentaire:

Enregistrer un commentaire