mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 22:51:06 +08:00
FIX: Do not trigger fullpage search when selecting autocomplete term with enter.
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user