mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
correct autocomplete edge case on android
@ backspace @ was not opening an autocomplete
This commit is contained in:
parent
ee931e9f76
commit
bc61cfcad4
1 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ export default function(options) {
|
||||||
var completeEnd = null;
|
var completeEnd = null;
|
||||||
var me = this;
|
var me = this;
|
||||||
var div = null;
|
var div = null;
|
||||||
|
var prevTerm = null;
|
||||||
|
|
||||||
// input is handled differently
|
// input is handled differently
|
||||||
var isInput = this[0].tagName === "INPUT";
|
var isInput = this[0].tagName === "INPUT";
|
||||||
|
@ -87,6 +88,7 @@ export default function(options) {
|
||||||
div = null;
|
div = null;
|
||||||
completeStart = null;
|
completeStart = null;
|
||||||
autocompleteOptions = null;
|
autocompleteOptions = null;
|
||||||
|
prevTerm = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
var addInputSelectedItem = function(item) {
|
var addInputSelectedItem = function(item) {
|
||||||
|
@ -248,7 +250,6 @@ export default function(options) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const SKIP = "skip";
|
const SKIP = "skip";
|
||||||
var prevTerm = null;
|
|
||||||
|
|
||||||
const dataSource = (term, opts) => {
|
const dataSource = (term, opts) => {
|
||||||
if (prevTerm === term) {
|
if (prevTerm === term) {
|
||||||
|
|
Loading…
Reference in a new issue