1/* stimulusFetch: 'lazy' */ 2// noinspection SymfonyImportMapModuleIsNotInstalled 3import DragDropController from './drag_drop_controller.js'; 4 5// noinspection JSUnusedGlobalSymbols loaded via stimulus 6export default class ComponentArrayDragDropController extends DragDropController { 7 8 onDrop (_dragItem, _dropTarget, _relativePosition) { 9 /** @type {HTMLElement} */ 10 const element = this.element; 11 element.querySelectorAll('input[data-position]').forEach((positionElm, i) => { 12 positionElm.value = i; 13 }); 14 } 15}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.