diff --git a/js/widgets/forms/checkboxradio.js b/js/widgets/forms/checkboxradio.js index b9fdcc7748b..ed3d7bde407 100644 --- a/js/widgets/forms/checkboxradio.js +++ b/js/widgets/forms/checkboxradio.js @@ -135,7 +135,7 @@ $.widget( "mobile.checkboxradio", $.extend( { // Adds checked attribute to checked input when keyboard is used this.element.prop( "checked", this.element.is( ":checked" ) ); this._getInputSet().not( this.element ).prop( "checked", false ); - this._updateAll(); + this._updateAll( true ); }, _handleLabelVMouseOver: function( event ) { @@ -225,13 +225,13 @@ $.widget( "mobile.checkboxradio", $.extend( { return radios; }, - _updateAll: function() { + _updateAll: function( changeTriggered ) { var self = this; this._getInputSet().each( function() { var $this = $( this ); - if ( this.checked || self.inputtype === "checkbox" ) { + if ( ( this.checked || self.inputtype === "checkbox" ) && !changeTriggered ) { $this.trigger( "change" ); } })