@react-aria/dnd 3.11.4 → 3.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/useDrop.ts CHANGED
@@ -16,7 +16,7 @@ import {DragEvent, useRef, useState} from 'react';
16
16
  import * as DragManager from './DragManager';
17
17
  import {DragTypes, globalAllowedDropOperations, globalDndState, readFromDataTransfer, setGlobalDnDState, setGlobalDropEffect} from './utils';
18
18
  import {DROP_EFFECT_TO_DROP_OPERATION, DROP_OPERATION, DROP_OPERATION_ALLOWED, DROP_OPERATION_TO_DROP_EFFECT} from './constants';
19
- import {isIPad, isMac, useEffectEvent, useLayoutEffect} from '@react-aria/utils';
19
+ import {isIPad, isMac, nodeContains, useEffectEvent, useLayoutEffect} from '@react-aria/utils';
20
20
  import {useVirtualDrop} from './useVirtualDrop';
21
21
 
22
22
  export interface DropOptions {
@@ -234,7 +234,7 @@ export function useDrop(options: DropOptions): DropResult {
234
234
 
235
235
  state.dragOverElements.delete(e.target as Element);
236
236
  for (let element of state.dragOverElements) {
237
- if (!e.currentTarget.contains(element)) {
237
+ if (!nodeContains(e.currentTarget, element)) {
238
238
  state.dragOverElements.delete(element);
239
239
  }
240
240
  }
package/src/.DS_Store DELETED
Binary file