Skip to content

Base Radio Button Checked vs Value #1767

@shkodasv

Description

@shkodasv

Hello!
Radio buttons can have different values AFAIK, but on the core code I can see the property "value" with Boolean type. https://github.com/DivanteLtd/vue-storefront/blob/19618fc3fa89d08651b1708bb4f044e1823ef45c/core/components/blocks/Form/BaseRadiobutton.js#L8

And it is used for attribute "checked" in https://github.com/DivanteLtd/vue-storefront/blob/19618fc3fa89d08651b1708bb4f044e1823ef45c/src/themes/default/components/core/blocks/Form/BaseRadiobutton.vue#L8

Is it a bug or there is some specific logic?

I guess BaseRadiobutton should have "checked" and "value" separately, what do you think ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions