PolymerElements / paper-radio-group

A group of Material Design radio buttons
19 stars 29 forks source link

paper-radio-group is not multiselectable despite "multi" property #70

Open ghost opened 7 years ago

ghost commented 7 years ago

Description

Radio buttons are not multiselectable despite of "multi" property. That happens because, since tag 1.0.2, paper-radio-group.html implements "select" method. In older versions, that method has been called from "iron-selector/iron-multi-selectable.html"

Expected outcome

In this simple example: <paper-radio-group multi> <paper-radio-button name="a">a</paper-radio-button> <paper-radio-button name="b">b</paper-radio-button> </paper-radio-group>

and selecting both radio buttons, both remain selected.

Actual outcome

Only last element is selected.

Browsers Affected

benquan commented 6 years ago

Similar issue. On your example, if you remove the name tags, the element works as expected, but as soon as you add name tags, multiselect goes berserk.

That would be a solution, but currently name is needed in order to work with selected-values (getting and setting). So, bug still persists.