Skip to content

Choices for boolean type don't return boolean values #1

@bhch

Description

@bhch

HTML (or browsers?) always returns a string value from an input. However, this library should convert the type as per the type keyword.

For example, something like this should return a boolean value:

{
    type: 'boolean',
    choices: [
        {label: 'Yes', value: true},
        {label: 'No', value: false},
    ]
}

This seems to work properly for number type: even though the browser returns a string, the values are converted to number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions