Skip to content
Permalink
Browse files

Checkboxradio: Check that there is an icon before toggeling class

Fixes #14939
Closes gh-1686
  • Loading branch information...
arschmitz authored and scottgonzalez committed Mar 23, 2016
1 parent 89fe04a commit 882eb4cbf261985624d4ce0f0a59ca8f38a4b054
Showing with 3 additions and 1 deletion.
  1. +3 −1 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( {

0 comments on commit 882eb4c

Please sign in to comment.
You can’t perform that action at this time.