Skip to content

Commit 75815a6

Browse files
committed
fix(pat sortable): Fix sorting functionality when sort item has any other class than .sortable.
1 parent cb62a5d commit 75815a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pat/sortable/sortable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export default Base.extend({
9797
this.$sortables.off(".pat-sortable");
9898
this.$el.off(".pat-sortable");
9999
$("#pat-scroll-up, #pat-scroll-dn").detach();
100-
var change = this.submitChangedAmount($(ev.target).closest(".sortable"));
100+
var change = this.submitChangedAmount(
101+
$(ev.target).closest(this.options.selector)
102+
);
101103
// Call the optionally passed-in callback function
102104
if (this.options.drop) {
103105
this.options.drop($dragged, change);

0 commit comments

Comments
 (0)