Skip to content

Commit f95a003

Browse files
committed
Do not check/uncheck disabled checkboxes in range selection.
1 parent a25b0f4 commit f95a003

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jquery.checkboxes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
to = $checkboxes.index($checkbox),
7272
start = Math.min(from, to),
7373
end = Math.max(from, to) + 1;
74-
$checkboxes.slice(start, end).prop('checked', $checkbox.prop('checked'));
74+
$checkboxes.slice(start, end)
75+
.filter(':not(:disabled)')
76+
.prop('checked', $checkbox.prop('checked'));
7577
}
7678
instance.$last = $checkbox;
7779
});

0 commit comments

Comments
 (0)