Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#4479 closed defect (fixed)

Radio button onclick does not check the button

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.0
Component: Dijit - Form Version: 0.9
Keywords: dijit.form.RadioButton, onclick, radio, button Cc: ccoppen@…
Blocked By: Blocking:

Description

When you add the onclick event to the dijit radio button in Dojo 0.9, the button will not get checked. I have not tried using the dojo.connect to put the onclick event on the button, yet, but I should be override onclick by placing it on the button itself. My javascript function still gets called, but the button does not show checked.

Example: <input dojoType="dijit.form.RadioButton?" type="radio" name="week1" value="CourseID 1 Credit" onclick="updateCart(this.value);"/>

Change History (4)

comment:1 Changed 12 years ago by bill

Milestone: 1.1
Owner: set to Douglas Hays

Agreed. But for that to work everything from Button upwards needs to implement an _onClick handler that calls onClick.

onClick(): function{}

comment:2 Changed 12 years ago by Douglas Hays

Milestone: 1.11.0

comment:3 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [11107]) Fixes #4479. Refactored code so that onClick is called for Button widgets and all subclasses.

comment:4 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.