Improve handling of checkbox inputs within the DialogManager.ask

This commit is contained in:
Eldritch-Oliver 2025-09-04 19:37:18 -06:00
parent da57b12800
commit cd3f076b7d

View file

@ -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`;