call updateFilenameInput on file drop

This commit is contained in:
Dan Henry 2024-01-18 12:08:32 +11:00
parent 18d289d3b7
commit 1bd17eded6

View file

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