mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
Blur search buttons before hiding them, so they don't interfere with hotkeys.
We currently disable hotkeys if the focus is on a textbox or button. Hidden buttons can still be in focus, so blur the search buttons before hiding them. (imported from commit 5fdab34ad9931ea5ea2ad1827b36dfe4c02d8797)
This commit is contained in:
parent
bd822bebcd
commit
296f707aef
@ -129,7 +129,7 @@ function clear_search() {
|
||||
$('#search').val('').width("610px");
|
||||
$("#search_arrows").removeClass("input-append");
|
||||
$("#search_up, #search_down").removeAttr("disabled");
|
||||
$('.search_button').hide();
|
||||
$('.search_button').blur().hide();
|
||||
clear_search_cache();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user