FIX: Do not trigger fullpage search when selecting autocomplete term with enter.

This commit is contained in:
Guo Xiang Tan
2017-03-07 11:54:15 +08:00
parent f3a7e398ca
commit 60b7453f3f
4 changed files with 27 additions and 30 deletions

View File

@ -240,6 +240,7 @@ export default function(options) {
var pos = null;
var vOffset = 0;
var hOffset = 0;
if (isInput) {
pos = {
left: 0,
@ -247,19 +248,14 @@ export default function(options) {
};
vOffset = -32;
hOffset = 0;
} if (options.treatAsTextarea) {
pos = me.caretPosition({
pos: completeStart,
key: options.key
});
hOffset = 27;
vOffset = -32;
} else {
pos = me.caretPosition({
pos: completeStart,
key: options.key
});
hOffset = 27;
if (options.treatAsTextarea) vOffset = -32;
}
div.css({
left: "-1000px"