# Radio buttons bug

**URL:** <https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564>\
**Category:** UXP Plugin API\
**Tags:** bug\
**Created:** [January 16, 2020, 3:35pm UTC](https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564 "2020-01-16T15:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomzag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/tomzag/32/2464_2.png) [@tomzag](https://forums.creativeclouddeveloper.com/u/tomzag)\
**Post date:** [January 16, 2020, 3:35pm UTC](https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564/1 "2020-01-16T15:35:38Z")

</div>

I think I found a bug on radio buttons.  
The onChange event will only be fired when clicking on the label and not when clicking on the circle.

I’m using React. This is the code:

```
<label>
<input type="radio" value="photos" name="options" onChange={this.handleOptionChange}/>
<span>Photos</span>
</label>
<label>
<input type="radio" value="icons" name="options" onChange={this.handleOptionChange}/>
<span>Icons</span>
</label>

```

Version 26.0.21.3 (Prerelease)

[https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/ad54c580b411a18adc433869c3e87b72b679fe5d.mov](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/ad54c580b411a18adc433869c3e87b72b679fe5d.mov)

---

<div class="post-metadata">

**Author:** ![tomzag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/tomzag/32/2464_2.png) [@tomzag](https://forums.creativeclouddeveloper.com/u/tomzag)\
**Post date:** [January 16, 2020, 3:37pm UTC](https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564/2 "2020-01-16T15:37:52Z")

</div>

Video seems not to work …

Workaround: Right click on the video \> Copy address \> Paste in Browser \> Download video

---

<div class="post-metadata">

**Author:** ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)\
**Post date:** [January 25, 2020, 12:20am UTC](https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564/3 "2020-01-25T00:20:34Z")

</div>

@kerrishotts is this a UXP known issue?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [January 27, 2020, 10:34pm UTC](https://forums.creativeclouddeveloper.com/t/radio-buttons-bug/1564/4 "2020-01-27T22:34:58Z")

</div>

Hmm… It looks like `onChange` isn’t being fired correctly. Try using `onClick` for now – that seems to work as expected (both the label and state indicator work).

I’ll pass this on internally.
