From cd3f076b7d3123fb41cda7416e760a8659715287 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Thu, 4 Sep 2025 19:37:18 -0600 Subject: [PATCH] Improve handling of checkbox inputs within the DialogManager.ask --- module/utils/DialogManager.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/utils/DialogManager.mjs b/module/utils/DialogManager.mjs index 772f02b..fdf6e8b 100644 --- a/module/utils/DialogManager.mjs +++ b/module/utils/DialogManager.mjs @@ -73,7 +73,9 @@ export class DialogManager { if (!i.valueAttribute) { switch (i.inputType) { case `checkbox`: - i.valueAttribute = `checked`; + i.type = `checkbox`; + delete i.valueAttribute; + delete i.inputType; break; default: i.valueAttribute = `value`;