FIX: Autocomplete wasn't showing up for PM user selection
This commit is contained in:
parent
34996b4eff
commit
13f89a53a3
|
@ -358,12 +358,10 @@ export default function(options) {
|
|||
$(this).on('keyup.autocomplete', function(e) {
|
||||
if ([keys.esc, keys.enter].indexOf(e.which) !== -1) return true;
|
||||
|
||||
var cp = caretPosition(me[0]);
|
||||
|
||||
if (!options.key) return;
|
||||
|
||||
let cp = caretPosition(me[0]);
|
||||
const key = me[0].value[cp-1];
|
||||
|
||||
if (options.key) {
|
||||
if (options.onKeyUp && key !== options.key) {
|
||||
var match = options.onKeyUp(me.val(), cp);
|
||||
if (match) {
|
||||
|
@ -373,6 +371,7 @@ export default function(options) {
|
|||
updateAutoComplete(dataSource(term, options));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (completeStart === null && cp > 0) {
|
||||
if (key === options.key) {
|
||||
|
|
Loading…
Reference in New Issue