We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07976a3 commit 5695b36Copy full SHA for 5695b36
packages/@react-aria/dnd/src/useDrop.ts
@@ -164,6 +164,7 @@ export function useDrop(options: DropOptions): DropResult {
164
};
165
166
let onDragEnter = (e: DragEvent) => {
167
+ e.preventDefault();
168
e.stopPropagation();
169
state.dragOverElements.add(e.target as Element);
170
if (state.dragOverElements.size > 1) {
@@ -200,6 +201,7 @@ export function useDrop(options: DropOptions): DropResult {
200
201
202
203
let onDragLeave = (e: DragEvent) => {
204
205
206
207
// We would use e.relatedTarget to detect if the drag is still inside the drop target,
0 commit comments