Opened 15 years ago

Closed 15 years ago

#2174 closed defect (fixed)

RadioButton allows deselecting

Reported by: [email protected] Owned by: bill
Priority: high Milestone: 0.9
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:


Radio button allows deselecting (when in a group).

This is different from native radio buttons, which do not allow deselecting a button by clicking it again.

You can do the comparision in the test_Checkbox.html (6838rev)

There should be at least an option to prevent this behavior.

Change History (2)

comment:1 Changed 15 years ago by bill

Milestone: 0.5

Good point, I will fix that.

comment:2 Changed 15 years ago by bill

Resolution: fixed
Status: newclosed

(In [6911]) Fixes #2174 (clicking a radio button that is "checked" shouldn't "uncheck" the radio button)

I removed the preventDefault() call for non-a11y checkbox onClick(); images don't have a default handler for clicks anyway. (They aren't like <a>) I don't see a reason for the stopPropogation() call either but I left it in for now.

Note: See TracTickets for help on using tickets.