Skip to content

Commit

Permalink
[#4241] Fix custom checkboxes not being disabled in uneditable item s…
Browse files Browse the repository at this point in the history
…heets.
  • Loading branch information
Fyorl committed Sep 16, 2024
1 parent c7b1457 commit 9c29d3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/applications/mixins/sheet-v2-mixin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default function DocumentSheetV2Mixin(Base) {
_disableFields(form) {
super._disableFields(form);
form.querySelectorAll(".interface-only").forEach(input => input.disabled = false);
form.querySelectorAll("dnd5e-checkbox:not(.interface-only)").forEach(input => input.disabled = true);
}

/* -------------------------------------------- */
Expand Down

0 comments on commit 9c29d3f

Please sign in to comment.