Skip to content

Commit

Permalink
Fix account tooltip with Bootstrap 5. (vufind-org#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 committed Jan 7, 2025
1 parent 7064035 commit 3c8312a
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 3c8312a

Please sign in to comment.