diff --git a/ui/widgets/checkboxradio.js b/ui/widgets/checkboxradio.js index 107749201..300cae8ce 100644 --- a/ui/widgets/checkboxradio.js +++ b/ui/widgets/checkboxradio.js @@ -115,7 +115,9 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { if ( checked ) { this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" ); - this._addClass( this.icon, null, "ui-state-hover" ); + if ( this.icon ) { + this._addClass( this.icon, null, "ui-state-hover" ); + } } this._on( {