mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
upload: Set focus to textarea after exiting upload window.
Restore focus back to textarea after user clicks on the upload icon and exit the upload window.
This commit is contained in:
@@ -212,6 +212,7 @@ export function setup_upload(config) {
|
||||
$("body").on("change", get_item("file_input_identifier", config), (event) => {
|
||||
const files = event.target.files;
|
||||
upload_files(uppy, config, files);
|
||||
get_item("textarea", config).trigger("focus");
|
||||
event.target.value = "";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user