Skip to content

Complicated to get value from radio button #151

@ButuzGOL

Description

@ButuzGOL

I have two radio buttons and I want to get value for checked

<RadioButton ref="color-red" name="color" value="red" defaultChecked="true" label="Red" />
<RadioButton ref="color-green" name="color" value="green" label="Green" />

Currently I am doing

refs['color-red'].refs.radioButton.getDOMNode().checked

But I think it's complicated
I think solution should be something like

refs.color.getValue()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions