@@ -174,7 +174,7 @@ function (_Component) {
174174 key : "handleCheck" ,
175175 value : function handleCheck ( e ) {
176176 this . setState ( {
177- checked : e . target . id
177+ checked : e . target . value
178178 } ) ;
179179 this . props . action ( e . target ) ;
180180 }
@@ -195,12 +195,12 @@ function (_Component) {
195195 this . props . options . map ( function ( option , i ) {
196196 options . push ( React . createElement ( "label" , {
197197 key : i ,
198- htmlFor : option . value ,
198+ htmlFor : "" . concat ( option . name ) . concat ( option . value ) ,
199199 className : "single-option " . concat ( _this2 . state . checked === option . value ? 'checked-option' : '' , " " ) . concat ( option . disabled ? 'disabled-option' : '' ) ,
200200 disabled : option . disabled
201201 } , React . createElement ( "input" , {
202202 type : "radio" ,
203- id : option . value ,
203+ id : "" . concat ( option . name ) . concat ( option . value ) ,
204204 name : option . name ,
205205 value : option . value ,
206206 onChange : _this2 . handleCheck ,
@@ -211,11 +211,11 @@ function (_Component) {
211211 action : "" ,
212212 className : "flex justify-content-center align-items-center flex-column"
213213 } , options . length <= 4 && options , options . length > 4 && options . slice ( 0 , 3 ) , ! this . state . showHidden && options . length > 4 && React . createElement ( "label" , {
214- htmlFor : "more" ,
214+ htmlFor : "" . concat ( options [ 0 ] . name , "- more") ,
215215 className : "single-option " . concat ( this . state . checked === 'more' ? 'checked-option' : '' )
216216 } , React . createElement ( "input" , {
217217 type : "radio" ,
218- id : "more" ,
218+ id : "" . concat ( options [ 0 ] . name , "- more") ,
219219 name : options [ 0 ] . name ,
220220 value : "more" ,
221221 onChange : this . openMore
0 commit comments