* Returns sortable elements for a given container, excluding the mirror and * original source element if present * @param {HTMLElement} container * @return {HTMLElement[]}
(container)
| 131 | * @return {HTMLElement[]} |
| 132 | */ |
| 133 | getSortableElementsForContainer(container) { |
| 134 | const allSortableElements = container.querySelectorAll( |
| 135 | this.options.draggable, |
| 136 | ); |
| 137 | |
| 138 | return [...allSortableElements].filter((childElement) => { |
| 139 | return ( |
| 140 | childElement !== this.originalSource && |
| 141 | childElement !== this.mirror && |
| 142 | childElement.parentNode === container |
| 143 | ); |
| 144 | }); |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Drag start handler |
no outgoing calls
no test coverage detected