Adding a dragenter handler
This commit is contained in:
parent
35a03dcfc9
commit
15984a0d5d
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue