Skip to content

Commit 2be88e3

Browse files
authored
Fixes scope bleed on saved input checkboxes
1 parent e7b4859 commit 2be88e3

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
@@ -1539,7 +1539,9 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
15391539
Sortable.active = null;
15401540

15411541
savedInputChecked.forEach(function (el) {
1542-
el.checked = true;
1542+
if (this.el.contains(el)) {
1543+
el.checked = true;
1544+
}
15431545
});
15441546

15451547
savedInputChecked.length =

0 commit comments

Comments
 (0)