mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Update button.js
Change tooltip when label changes
This commit is contained in:
parent
74f8a0ac95
commit
4f205e20b9
@ -238,8 +238,8 @@ $.widget( "ui.button", {
|
||||
|
||||
// Make sure we can't end up with a button that has neither text nor icon
|
||||
if ( key === "showLabel" ) {
|
||||
this._toggleClass( "ui-button-icon-only", null, !value );
|
||||
this._updateTooltip();
|
||||
this._toggleClass( "ui-button-icon-only", null, !value );
|
||||
this._updateTooltip();
|
||||
}
|
||||
|
||||
if ( key === "label" ) {
|
||||
@ -255,6 +255,7 @@ $.widget( "ui.button", {
|
||||
this._attachIconSpace( this.options.iconPosition );
|
||||
}
|
||||
}
|
||||
this._updateTooltip();
|
||||
}
|
||||
|
||||
this._super( key, value );
|
||||
|
Loading…
Reference in New Issue
Block a user