Skip to content

Commit

Permalink
Fix account tooltip with Bootstrap 5. (#4163)
Browse files Browse the repository at this point in the history
Fixes flickering and makes tooltip initially hidden like it was with Bootstrap 3.
  • Loading branch information
EreMaijala authored Dec 16, 2024
1 parent 7a96f0d commit 419cd9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions themes/bootstrap5/js/account_ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ VuFind.register('account', function Account() {
accountIconEl.dataset.bsToggle = 'tooltip';
accountIconEl.dataset.bsPlacement = 'bottom';
accountIconEl.title = VuFind.translate('account_has_alerts');
const tooltip = bootstrap.Tooltip.getOrCreateInstance(accountIconEl);
tooltip.show();
bootstrap.Tooltip.getOrCreateInstance(accountIconEl);
} else {
const tooltip = bootstrap.Tooltip.getOrCreateInstance(accountIconEl);
tooltip.dispose();
Expand Down

0 comments on commit 419cd9f

Please sign in to comment.