You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
propagates back to input field which triggers focus.
live('autocomplete-suggestion', 'mousedown', function(e){
if (hasClass(this, 'autocomplete-suggestion')) { // else outside click
var v = this.getAttribute('data-val');
that.value = v;
o.onSelect(e, v, this);
that.sc.style.display = 'none';
}
}, that.sc);
On focus the below event is triggered, because of which .autocomplete-suggestion is again visible.
if (!o.minChars) addEvent(that, 'focus', that.focusHandler);
To avoid this I have added e.preventDefault(); in live('autocomplete-suggestion', 'mousedown', function(e){...} function.
Please see if you can recreate and provide a better solution for this.
The text was updated successfully, but these errors were encountered:
mousedown event on element
propagates back to input field which triggers focus.
On focus the below event is triggered, because of which .autocomplete-suggestion is again visible.
To avoid this I have added
e.preventDefault();
inlive('autocomplete-suggestion', 'mousedown', function(e){...}
function.Please see if you can recreate and provide a better solution for this.
The text was updated successfully, but these errors were encountered: