(e)
| 239 | } |
| 240 | }, |
| 241 | onDrop(e) { |
| 242 | setDropCollectionRef(ref); |
| 243 | if (state.target) { |
| 244 | onDrop(e, state.target); |
| 245 | } |
| 246 | |
| 247 | // If there wasn't a collection being tracked as a dragged collection, then we are in a case where a non RSP drag is dropped on a |
| 248 | // RSP collection and thus we don't need to preserve the global DnD state for onDragEnd |
| 249 | let {draggingCollectionRef} = globalDndState; |
| 250 | if (draggingCollectionRef == null) { |
| 251 | clearGlobalDnDState(); |
| 252 | } |
| 253 | } |
| 254 | }); |
| 255 | |
| 256 | let droppingState = useRef<DroppingState>(null); |
nothing calls this directly
no test coverage detected