mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 07:21:23 +00:00
stream_settings: Place the cursor automatically in channel name.
When the user opens channel create settings from left sidebar, now the focus is set on the channel name input. The logic was already there, but not properly placed inside the overlay code path. Fixes #32034.
This commit is contained in:
@@ -818,7 +818,7 @@ export function launch(section, left_side_tab, right_side_tab) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
change_state(section, left_side_tab, right_side_tab);
|
change_state(section, left_side_tab, right_side_tab);
|
||||||
});
|
setTimeout(() => {
|
||||||
if (!stream_settings_components.get_active_data().id) {
|
if (!stream_settings_components.get_active_data().id) {
|
||||||
if (section === "new") {
|
if (section === "new") {
|
||||||
$("#create_stream_name").trigger("focus");
|
$("#create_stream_name").trigger("focus");
|
||||||
@@ -826,6 +826,8 @@ export function launch(section, left_side_tab, right_side_tab) {
|
|||||||
$("#search_stream_name").trigger("focus");
|
$("#search_stream_name").trigger("focus");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function switch_rows(event) {
|
export function switch_rows(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user