Fixed keycode undefined
This commit is contained in:
parent
e8901b20e9
commit
88996deba5
1 changed files with 1 additions and 5 deletions
|
@ -37,7 +37,7 @@
|
|||
e.preventDefault()
|
||||
}
|
||||
})
|
||||
.on('input', function(e) {
|
||||
.on('input', function() {
|
||||
if (this.input.val() !== "" && !$inputContainer.hasClass(HAS_VALUE_CLASS)) {
|
||||
$inputContainer.addClass(HAS_VALUE_CLASS);
|
||||
} else if (this.input.val() === "" && $inputContainer.hasClass(HAS_VALUE_CLASS)) {
|
||||
|
@ -50,10 +50,6 @@
|
|||
if (this.options.remote) {
|
||||
clearTimeout(timeout);
|
||||
return timeout = setTimeout(function() {
|
||||
var blurField = this.shouldBlur(keyCode);
|
||||
if (blurField && this.filterInputBlur) {
|
||||
this.input.blur();
|
||||
}
|
||||
return this.options.query(this.input.val(), function(data) {
|
||||
return this.options.callback(data);
|
||||
}.bind(this));
|
||||
|
|
Loading…
Reference in a new issue