Opened 8 years ago
Closed 8 years ago
#16995 closed defect (invalid)
[regression] Checkbox and possibly Radio Buttons no functional (FF20)
Reported by: | mraulers | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | Dijit - Form | Version: | 1.9.0b2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
After encountering an error with radio buttons in 1.8.3, I looked at upcoming releases to see if the functionality looks like it will be fixed. It appears that in 1.8.4rc1 that the check boxes work as expected.
However, when using 1.9.0b2 with Firefox 20, the check boxes visually change, but they keep the checked="checked" property even when they have been unchecked.
When loaded the following checkbox was checked: <input checked="checked" style="-moz-user-select: none;" value="dimensions" id="source0" tabindex="0" name="source" role="checkbox" aria-checked="true" class="dijitReset dijitCheckBoxInput" data-dojo-attach-point="focusNode" data-dojo-attach-event="ondijitclick:_onClick" type="checkbox">
After Unchecking it: <input checked="checked" style="-moz-user-select: none;" value="dimensions" id="source0" tabindex="0" name="source" role="checkbox" aria-checked="false" class="dijitReset dijitCheckBoxInput" data-dojo-attach-point="focusNode" data-dojo-attach-event="ondijitclick:_onClick" type="checkbox">
The same appears to occur with radio buttons: selected/checked: <input checked="checked" style="-moz-user-select: none;" value="SPR" id="ch_doc_type0" tabindex="0" name="ch_doc_type" role="radio" aria-checked="true" class="dijitReset dijitCheckBoxInput" data-dojo-attach-point="focusNode" data-dojo-attach-event="ondijitclick:_onClick" type="radio">
unselected/unchecked: <input checked="checked" style="-moz-user-select: none;" value="SPR" id="ch_doc_type0" tabindex="0" name="ch_doc_type" role="radio" aria-checked="false" class="dijitReset dijitCheckBoxInput" data-dojo-attach-point="focusNode" data-dojo-attach-event="ondijitclick:_onClick" type="radio">
Change History (2)
comment:1 Changed 8 years ago by
Component: | General → Dijit - Form |
---|---|
Milestone: | tbd → 1.9 |
Owner: | set to Douglas Hays |
Summary: | Checkbox and possibly Radio Buttons no functional (FF20) → [regression] Checkbox and possibly Radio Buttons no functional (FF20) |
comment:2 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
checkbox.getAttribute('checked') returns the checked attribute of the checkbox which is the form reset value. checkbox.checked returns the current property value which is what will be submitted in a form. You can run
http://archive.dojotoolkit.org/nightly/checkout/dijit/tests/form/test_CheckBox.html
and change the checkbox/radio values and press submit and reset buttons to see the effect.