mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +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) => {
|
$("body").on("change", get_item("file_input_identifier", config), (event) => {
|
||||||
const files = event.target.files;
|
const files = event.target.files;
|
||||||
upload_files(uppy, config, files);
|
upload_files(uppy, config, files);
|
||||||
|
get_item("textarea", config).trigger("focus");
|
||||||
event.target.value = "";
|
event.target.value = "";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user