Skip to content

Commit

Permalink
correct autocomplete edge case on android
Browse files Browse the repository at this point in the history
@ backspace @ was not opening an autocomplete
  • Loading branch information
SamSaffron committed Feb 24, 2016
1 parent ee931e9 commit bc61cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/discourse/lib/autocomplete.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default function(options) {
var completeEnd = null;
var me = this;
var div = null;
var prevTerm = null;

// input is handled differently
var isInput = this[0].tagName === "INPUT";
Expand All @@ -87,6 +88,7 @@ export default function(options) {
div = null;
completeStart = null;
autocompleteOptions = null;
prevTerm = null;
};

var addInputSelectedItem = function(item) {
Expand Down Expand Up @@ -248,7 +250,6 @@ export default function(options) {
};

const SKIP = "skip";
var prevTerm = null;

const dataSource = (term, opts) => {
if (prevTerm === term) {
Expand Down

0 comments on commit bc61cfc

Please sign in to comment.