* Returns draggable elements for a given container, excluding the mirror and * original source element if present * @param {HTMLElement} container * @return {HTMLElement[]}
(container)
| 396 | * @return {HTMLElement[]} |
| 397 | */ |
| 398 | getDraggableElementsForContainer(container) { |
| 399 | const allDraggableElements = container.querySelectorAll( |
| 400 | this.options.draggable, |
| 401 | ); |
| 402 | |
| 403 | return [...allDraggableElements].filter((childElement) => { |
| 404 | return ( |
| 405 | childElement !== this.originalSource && childElement !== this.mirror |
| 406 | ); |
| 407 | }); |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Cancel dragging immediately |
no outgoing calls
no test coverage detected