Adding a dragenter handler

This commit is contained in:
Eric van der Vlist 2023-04-18 17:44:35 +02:00
parent 35a03dcfc9
commit 15984a0d5d
1 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,11 @@ const Map: Component = () => {
importUrls(event.dataTransfer.files);
};
const dragEnterHandler = (event: any) => {
event.preventDefault();
console.log({ caller: 'Map / dragEnterHandler', event });
};
const dragOverHandler = (event: any) => {
event.preventDefault();
console.log({ caller: 'Map / dragOverHandler', event });
@ -314,6 +319,7 @@ const Map: Component = () => {
ref={target}
ondrop={dropHandler}
ondragover={dragOverHandler}
ondragenter={dragEnterHandler}
>
<Updater />
<Invitation />