dataTransfer is undefined in Event at onDropDragOver callback.
Author: NickWangCNCreated Aug 24, 2022Updated Aug 4, 2026
Labelsbugneeds-info
Describe the bug
Sure, I can return {w: number, h: number} after call onDropDragOver, but when outside items has different size, how can I know it. I have set dataTransfer there, but looks I only can get it at onDrop.
Your Example Website or App
https://codesandbox.io/s/nice-roman-mun30j?file=/src/ShowcaseLayout.js
Steps to Reproduce the Bug or Issue
- Go to sandbox
- Drag item
- Please see message in control panel.
Expected behavior
Develper can get data from dataTransfer in onDropDragOver same as onDrop
react-grid-layout library version
1.3.4
Operating System Version
Windows
Browser
Chrome
Additional context
No response
Screenshots or Videos
No response
Source: react-grid-layout/react-grid-layout