Skip to content

Commit

Permalink
Fix account tooltip with Bootstrap 5.
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 committed Dec 16, 2024
1 parent 8736fe3 commit a8da32a
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 a8da32a

Please sign in to comment.