Improve handling of checkbox inputs within the DialogManager.ask
This commit is contained in:
parent
da57b12800
commit
cd3f076b7d
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ export class DialogManager {
|
||||||
if (!i.valueAttribute) {
|
if (!i.valueAttribute) {
|
||||||
switch (i.inputType) {
|
switch (i.inputType) {
|
||||||
case `checkbox`:
|
case `checkbox`:
|
||||||
i.valueAttribute = `checked`;
|
i.type = `checkbox`;
|
||||||
|
delete i.valueAttribute;
|
||||||
|
delete i.inputType;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
i.valueAttribute = `value`;
|
i.valueAttribute = `value`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue