don't blur on autocomplete click

This commit is contained in:
Sam 2015-09-16 13:16:08 +10:00
parent 7db4ddcb66
commit 31d801ce2c

View file

@ -93,7 +93,11 @@ function positioningWorkaround($fixedElement) {
} }
const checkForInputs = _.debounce(function(){ const checkForInputs = _.debounce(function(){
$fixedElement.find('button,a').each(function(){ $fixedElement.find('button,a:not(.autocomplete)').each(function(idx, elem){
if ($(elem).parents('.autocomplete').length > 0) {
return;
}
attachTouchStart(this, function(evt){ attachTouchStart(this, function(evt){
done = true; done = true;
$(document.activeElement).blur(); $(document.activeElement).blur();