Skip to content

Commit

Permalink
fix flickering search input
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed May 11, 2023
1 parent 280a1e2 commit 94a9f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/thruk/javascript/thruk-3.04.js
Expand Up @@ -8550,7 +8550,7 @@ var ajax_search = {
window.setTimeout(function() { ajax_search.stop_events=false; }, 200);
input.focus();
} else {
if(input && input.value == "") {
if(input && input.value == "" && input !== document.activeElement) {
jQuery(input).removeClass("expanded");
}
}
Expand All @@ -8562,7 +8562,7 @@ var ajax_search = {
fade(ajax_search.result_pan, 300);
if(ajax_search.input_field) {
var input = document.getElementById(ajax_search.input_field);
if(input && input.value == "") {
if(input && input.value == "" && input !== document.activeElement) {
jQuery(input).removeClass("expanded");
}
}
Expand Down

0 comments on commit 94a9f60

Please sign in to comment.