Skip to content

Commit 297a383

Browse files
author
SimonSteinberger
committed
1 parent eb2ece0 commit 297a383

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

auto-complete.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ var autoComplete = (function(){
9797
var v = this.getAttribute('data-val');
9898
that.value = v;
9999
o.onSelect(e, v, this);
100-
that.focus();
101100
that.sc.style.display = 'none';
102101
}
103102
}, that.sc);
@@ -150,7 +149,7 @@ var autoComplete = (function(){
150149
// enter
151150
else if (key == 13) {
152151
var sel = that.sc.querySelector('.autocomplete-suggestion.selected');
153-
if (sel) { o.onSelect(e, sel.getAttribute('data-val'), sel); setTimeout(function(){ that.focus(); that.sc.style.display = 'none'; }, 10); }
152+
if (sel) { o.onSelect(e, sel.getAttribute('data-val'), sel); setTimeout(function(){ that.sc.style.display = 'none'; }, 10); }
154153
}
155154
};
156155
addEvent(that, 'keydown', that.keydownHandler);

auto-complete.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)