Use keyup instead of keypress, because when keypress gets fired, the new value isn't set yet.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@185 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
1f05954924
commit
9ca456411c
@ -52,7 +52,7 @@ TextSearchFacet.prototype._initializeUI = function() {
|
|||||||
var bodyDiv = $('<div></div>').addClass("facet-text-body").appendTo(container);
|
var bodyDiv = $('<div></div>').addClass("facet-text-body").appendTo(container);
|
||||||
|
|
||||||
var input = $('<input />').appendTo(bodyDiv);
|
var input = $('<input />').appendTo(bodyDiv);
|
||||||
input.keypress(function(evt) {
|
input.keyup(function(evt) {
|
||||||
self._query = this.value;
|
self._query = this.value;
|
||||||
self._scheduleUpdate();
|
self._scheduleUpdate();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user