Skip to content

Commit db02541

Browse files
committed
fix(pat-sortable): sortable-handle needs to be injected at last element of the sortable item.
1 parent 712fd0c commit db02541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/sortable/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default Base.extend({
7474
handle.setAttribute("href", "#");
7575
handle.setAttribute("title", "Drag to reorder");
7676
handle.setAttribute("aria-label", "Drag to reorder");
77-
sortable.insertBefore(handle, sortable.firstChild);
77+
sortable.appendChild(handle);
7878

7979
// TODO: remove when element is a button.
8080
events.add_event_listener(handle, "click", "pat-sortable--click", (e) => {

0 commit comments

Comments
 (0)