mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Checkboxradio: Check that there is an icon before toggeling class
Fixes #14939 Closes gh-1686
This commit is contained in:
parent
89fe04af3d
commit
882eb4cbf2
@ -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( {
|
||||
|
Loading…
Reference in New Issue
Block a user