Skip to content

Commit

Permalink
fix(tooltip): fixed closing on hover from arrow direction
Browse files Browse the repository at this point in the history
It just restores styles that were removed when migrating to Bootstrap 5 for an unknown reason.

Fixes #3997
  • Loading branch information
maxokorokov committed Sep 13, 2023
1 parent cc8229d commit 4417ee6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/tooltip/tooltip.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ngb-tooltip-window {
pointer-events: none;
position: absolute;

.tooltip-inner {
pointer-events: auto;
}
}
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ let nextId = 0;
'[class.fade]': 'animation',
role: 'tooltip',
'[id]': 'id',
style: 'position: absolute;',
},
styleUrls: ['./tooltip.scss'],
template: `<div class="tooltip-arrow" data-popper-arrow></div
><div class="tooltip-inner"><ng-content></ng-content></div>`,
})
Expand Down

0 comments on commit 4417ee6

Please sign in to comment.