(options: DragTarget)
| 700 | } |
| 701 | |
| 702 | function findValidDropTargets(options: DragTarget) { |
| 703 | let types = getTypes(options.items); |
| 704 | return [...dropTargets.values()].filter(target => { |
| 705 | if (target.element.closest('[aria-hidden="true"], [inert]')) { |
| 706 | return false; |
| 707 | } |
| 708 | |
| 709 | if (typeof target.getDropOperation === 'function') { |
| 710 | return target.getDropOperation(types, options.allowedDropOperations) !== 'cancel'; |
| 711 | } |
| 712 | |
| 713 | return true; |
| 714 | }); |
| 715 | } |
no test coverage detected