mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
navbar: Update searchbox event listeners behaviour.
These are some UI and UX changes mainly related for when to display the search pills and when to dispay the narrow description in the search bar.
This commit is contained in:
@@ -12,7 +12,7 @@ const return_true = () => true;
|
||||
const return_false = () => false;
|
||||
|
||||
set_global('$', global.make_zjquery());
|
||||
set_global('narrow_state', {});
|
||||
set_global('narrow_state', {filter: return_false});
|
||||
set_global('search_suggestion', {});
|
||||
set_global('ui_util', {
|
||||
change_tab_to: noop,
|
||||
@@ -283,7 +283,7 @@ run_test('initizalize', () => {
|
||||
|
||||
run_test('initiate_search', () => {
|
||||
let is_searchbox_focused = false;
|
||||
$('#search_query').focus = () => {
|
||||
$('#search_arrows').focus = () => {
|
||||
is_searchbox_focused = true;
|
||||
};
|
||||
search.initiate_search();
|
||||
|
||||
Reference in New Issue
Block a user