Add tooltip delay and fix stuck tooltips.
This commit is contained in:
@@ -5,7 +5,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
function initTooltips(elementRoot) {
|
||||
const tooltipTriggerList = elementRoot.querySelectorAll('[data-bs-action="tooltip"]');
|
||||
tooltipTriggerList.forEach((elem) => {
|
||||
new bootstrap.Tooltip(elem);
|
||||
new bootstrap.Tooltip(elem, {
|
||||
trigger: 'hover',
|
||||
delay: {show: 1000, hide: 0},
|
||||
container: 'body'
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user