···11/**
22- * Creates a "magic" reorderable list from `container`.
22+ * Creates a reorderable list from any `container` and viable list item selector.
33+ *
34 * This function is absolute magic and I love it
45 *
56 * Example:
···2930 item.draggable = true;
3031 item.addEventListener("dragstart", () => { item.classList.add("moving") });
3132 item.addEventListener("dragend", () => { item.classList.remove("moving") });
3333+3434+ // dragging on inputs should take priority
3235 item.querySelectorAll("input").forEach(el => {
3336 el.addEventListener("mousedown", () => { item.draggable = false });
3437 el.addEventListener("mouseup", () => { item.draggable = true });