mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
don't blur on autocomplete click
This commit is contained in:
parent
7db4ddcb66
commit
31d801ce2c
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue