Skip to content
Permalink
Browse files

Tooltip: Don't apply disabled style changes on create

Ref #9151
Ref gh-1599
  • Loading branch information
jzaefferer authored and scottgonzalez committed Sep 25, 2015
1 parent 1397ce4 commit ef8ac2a9f2a98600a029553e45cbde42ca179066
Showing with 4 additions and 12 deletions.
  1. +4 −12 ui/widgets/tooltip.js
@@ -105,10 +105,6 @@ $.widget( "ui.tooltip", {
// IDs of parent tooltips where we removed the title attribute
this.parents = {};

if ( this.options.disabled ) {
this._disable();
}

// Append the aria-live region so tooltips announce correctly
this.liveRegion = $( "<div>" )
.attr( {
@@ -123,14 +119,6 @@ $.widget( "ui.tooltip", {
_setOption: function( key, value ) {
var that = this;

if ( key === "disabled" ) {
this[ value ? "_disable" : "_enable" ]();
this.options[ key ] = value;

// disable element style changes
return;
}

this._super( key, value );

if ( key === "content" ) {
@@ -140,6 +128,10 @@ $.widget( "ui.tooltip", {
}
},

_setOptionDisabled: function( value ) {
this[ value ? "_disable" : "_enable" ]();
},

_disable: function() {
var that = this;

0 comments on commit ef8ac2a

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