mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-04 16:22:01 +00:00
call updateFilenameInput on file drop
This commit is contained in:
parent
18d289d3b7
commit
1bd17eded6
@ -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…
x
Reference in New Issue
Block a user