Adding a dragenter handler
This commit is contained in:
parent
35a03dcfc9
commit
15984a0d5d
|
@ -114,6 +114,11 @@ const Map: Component = () => {
|
||||||
importUrls(event.dataTransfer.files);
|
importUrls(event.dataTransfer.files);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const dragEnterHandler = (event: any) => {
|
||||||
|
event.preventDefault();
|
||||||
|
console.log({ caller: 'Map / dragEnterHandler', event });
|
||||||
|
};
|
||||||
|
|
||||||
const dragOverHandler = (event: any) => {
|
const dragOverHandler = (event: any) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
console.log({ caller: 'Map / dragOverHandler', event });
|
console.log({ caller: 'Map / dragOverHandler', event });
|
||||||
|
@ -314,6 +319,7 @@ const Map: Component = () => {
|
||||||
ref={target}
|
ref={target}
|
||||||
ondrop={dropHandler}
|
ondrop={dropHandler}
|
||||||
ondragover={dragOverHandler}
|
ondragover={dragOverHandler}
|
||||||
|
ondragenter={dragEnterHandler}
|
||||||
>
|
>
|
||||||
<Updater />
|
<Updater />
|
||||||
<Invitation />
|
<Invitation />
|
||||||
|
|
Loading…
Reference in New Issue