focus input after hiding autocomplete menu
This commit is contained in:
parent
6e7a1936dc
commit
4710f80b65
1 changed files with 3 additions and 0 deletions
|
@ -394,6 +394,7 @@ Ox.Input = function(options, self) {
|
||||||
self.$autocompleteMenu
|
self.$autocompleteMenu
|
||||||
.unbindEvent('select')
|
.unbindEvent('select')
|
||||||
.hideMenu();
|
.hideMenu();
|
||||||
|
that.gainFocus();
|
||||||
self.selectEventBound = false;
|
self.selectEventBound = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -494,6 +495,7 @@ Ox.Input = function(options, self) {
|
||||||
self.$autocompleteMenu
|
self.$autocompleteMenu
|
||||||
.unbindEvent('select')
|
.unbindEvent('select')
|
||||||
.hideMenu();
|
.hideMenu();
|
||||||
|
that.gainFocus();
|
||||||
self.selectEventBound = false;
|
self.selectEventBound = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -740,6 +742,7 @@ Ox.Input = function(options, self) {
|
||||||
key_enter: function() {
|
key_enter: function() {
|
||||||
if (self.$autocompleteMenu.is(':visible')) {
|
if (self.$autocompleteMenu.is(':visible')) {
|
||||||
self.$autocompleteMenu.hideMenu();
|
self.$autocompleteMenu.hideMenu();
|
||||||
|
that.gainFocus();
|
||||||
submit();
|
submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue