Opened 14 years ago
Closed 14 years ago
#2174 closed defect (fixed)
RadioButton allows deselecting
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Widgets | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
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 14 years ago by
Milestone: | → 0.5 |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(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.
Good point, I will fix that.