Fix bug with tooltips on disabled buttons after loading.

This commit is contained in:
Julia Radzhabova 2017-04-24 15:46:46 +03:00
parent e2363e519a
commit d503fd94fc

View file

@ -550,6 +550,14 @@ define([
if (modalParents.length > 0) {
cmpEl.data('bs.tooltip').tip().css('z-index', parseInt(modalParents.css('z-index')) + 10);
}
if (this.disabled || !Common.Utils.isGecko) {
var tip = this.cmpEl.data('bs.tooltip');
if (tip) {
this.disabled && tip.hide();
!Common.Utils.isGecko && (tip.enabled = !this.disabled);
}
}
},
setCaption: function(caption) {