mirror of https://github.com/zulip/zulip.git
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:
parent
a1aaf4a52d
commit
a5ec77bc45
|
@ -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 = "";
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue