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:
Aman Agrawal 2022-11-22 10:16:58 +00:00 committed by Tim Abbott
parent a1aaf4a52d
commit a5ec77bc45
1 changed files with 1 additions and 0 deletions

View File

@ -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 = "";
});