call updateFilenameInput on file drop
This commit is contained in:
parent
18d289d3b7
commit
1bd17eded6
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import PdfContainer from "./PdfContainer";
|
||||
|
||||
const addFileDragListener = (callback) => {
|
||||
let overlay;
|
||||
let dragCounter = 0;
|
||||
|
@ -43,10 +45,14 @@ const addFileDragListener = (callback) => {
|
|||
console.error(err);
|
||||
//maybe
|
||||
}).finally(() => {
|
||||
// Hide and remove the overlay
|
||||
if (overlay) {
|
||||
overlay.remove();
|
||||
overlay = null;
|
||||
}
|
||||
|
||||
// Enable/disable filename input
|
||||
PdfContainer.updateFilenameInput()
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue