fix: simplify talent rank display in character sheet

This commit is contained in:
Johannes Loher 2022-11-10 03:32:52 +01:00
parent d99b1006ba
commit 1e7492073e
9 changed files with 3 additions and 73 deletions

View file

@ -15,7 +15,7 @@ export function disableOverriddenFields(
for (const key of Object.keys(foundry.utils.flattenObject(overrides))) {
const elements = form?.querySelectorAll(selector(key));
elements?.forEach((element) => {
if (inputs.includes(element.tagName)) {
if (inputs.includes(element.tagName) && !element.hasAttribute("disabled")) {
element.setAttribute("disabled", "");
const title = element.getAttribute("title");
const newTitle = title === null ? titleAddition : `${title} ${titleAddition}`;