Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit fac8c43

Browse files
author
Simone Primarosa
committed
Fix wrong usage of id attribute for the close button
1 parent 192d15d commit fac8c43

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/angular-tooltips.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,6 @@
703703
}
704704

705705
tipTipElement.replaceWith($compile(tipTipElement)(newScope));
706-
/*eslint-disable no-use-before-define*/
707-
unregisterOnTooltipControllerChange();
708-
/*eslint-enable no-use-before-define*/
709706
}
710707
}
711708
, onTooltipSizeChange = function onTooltipSizeChange(newValue) {
@@ -746,9 +743,7 @@
746743
, unregisterOnTooltipSpeedChange = $attrs.$observe('tooltipSpeed', onTooltipSpeedChange)
747744
, unregisterTipContentChangeWatcher = scope.$watch(whenActivateMultilineCalculation, calculateIfMultiLine);
748745

749-
closeButtonElement.attr({
750-
'id': 'close-button'
751-
});
746+
closeButtonElement.addClass('close-button');
752747
closeButtonElement.html('×');
753748

754749
tipElement.addClass('_hidden');

lib/angular-tooltips.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ tooltip {
255255

256256
tip-tip {
257257

258-
#close-button {
258+
.close-button {
259259
cursor: pointer;
260260
float: right;
261261
left: 8%;

0 commit comments

Comments
 (0)