diff --git a/module/applications/api/application.mjs b/module/applications/api/application.mjs index 75ba12af0d..c0cf197d83 100644 --- a/module/applications/api/application.mjs +++ b/module/applications/api/application.mjs @@ -112,11 +112,11 @@ export default class Application5e extends HandlebarsApplicationMixin(Applicatio * Disable form fields that aren't marked with the `interface-only` class. */ _disableFields() { - const tags = [ + const selector = `.window-content :is(${[ "INPUT", "SELECT", "TEXTAREA", "BUTTON", "DND5E-CHECKBOX", "COLOR-PICKER", "DOCUMENT-TAGS", "FILE-PICKER", "HUE-SLIDER", "MULTI-SELECT", "PROSE-MIRROR", "RANGE-PICKER", "STRING-TAGS" - ]; - for ( const element of this.element.querySelectorAll(`:is(${tags.join(", ")}):not(.interface-only)`) ) { + ].join(", ")}):not(.interface-only)`; + for ( const element of this.element.querySelectorAll(selector) ) { if ( element.tagName === "TEXTAREA" ) element.readOnly = true; else element.disabled = true; }