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,8 +115,10 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|||||||
|
|
||||||
if ( checked ) {
|
if ( checked ) {
|
||||||
this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
|
this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
|
||||||
|
if ( this.icon ) {
|
||||||
this._addClass( this.icon, null, "ui-state-hover" );
|
this._addClass( this.icon, null, "ui-state-hover" );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this._on( {
|
this._on( {
|
||||||
change: "_toggleClasses",
|
change: "_toggleClasses",
|
||||||
|
Loading…
Reference in New Issue
Block a user