Skip to content

Commit 6121920

Browse files
author
scottjehl
committed
adjusted change event handling to fire change event on the selected radio, as Dave suggested, and which matches the native triggering. Also, checkboxes change events appear consistent with native implementation. Fixes jquery-archive#1206
1 parent 506d505 commit 6121920

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/jquery.mobile.forms.checkboxradio.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
102102

103103
_updateAll: function(){
104104
this._getInputSet().each(function(){
105-
var dVal = $(this).jqmData("cacheVal");
106-
if( dVal && dVal !== $(this).is(":checked") || this.inputtype === "checkbox" ){
105+
if( $(this).is(":checked") || this.inputtype === "checkbox" ){
107106
$(this).trigger("change");
108107
}
109108
})

0 commit comments

Comments
 (0)