mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
recent_topics: Don't revive focus when user is trying to type.
This commit is contained in:
@@ -78,6 +78,12 @@ function revive_current_focus() {
|
||||
// After re-render, the current_focus_elem is no longer linked
|
||||
// to the focused element, this function attempts to revive the
|
||||
// link and focus to the element prior to the rerender.
|
||||
|
||||
// Don't change focus if user is trying to type anywhere.
|
||||
if ($(".home-page-input").is(":focus")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!current_focus_elem) {
|
||||
set_default_focus();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user