mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:04:59 +08:00
don't blur on autocomplete click
This commit is contained in:
parent
7db4ddcb66
commit
31d801ce2c
|
@ -93,7 +93,11 @@ function positioningWorkaround($fixedElement) {
|
|||
}
|
||||
|
||||
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){
|
||||
done = true;
|
||||
$(document.activeElement).blur();
|
||||
|
|
Loading…
Reference in New Issue
Block a user