Skip to content

Commit 66fd151

Browse files
daftspunkmathieumahe
authored andcommitted
Fixes scope bleed on saved input checkboxes
1 parent ddd0597 commit 66fd151

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Sortable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,9 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
15561556
Sortable.active = null;
15571557

15581558
savedInputChecked.forEach(function (el) {
1559-
el.checked = true;
1559+
if (this.el.contains(el)) {
1560+
el.checked = true;
1561+
}
15601562
});
15611563

15621564
savedInputChecked.length =

0 commit comments

Comments
 (0)