diff --git a/assets/src/components/Digitizing.js b/assets/src/components/Digitizing.js index d3cf7ac1e7..608860226c 100644 --- a/assets/src/components/Digitizing.js +++ b/assets/src/components/Digitizing.js @@ -259,7 +259,9 @@ export default class Digitizing extends HTMLElement { render(mainTemplate(), this); const tooltipTriggerList = this.querySelectorAll('[data-bs-toggle="tooltip"]'); - [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); + [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl, { + trigger: 'hover' + })); mainEventDispatcher.addListener( () => { diff --git a/assets/src/legacy/map.js b/assets/src/legacy/map.js index fec8c87409..17879c4108 100644 --- a/assets/src/legacy/map.js +++ b/assets/src/legacy/map.js @@ -3985,6 +3985,8 @@ $(document).ready(function () { // Init bootstrap tooltips const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); - [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); + [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl, { + trigger: 'hover' + })); $( "#loading" ).css('min-height','128px'); }); diff --git a/assets/src/legacy/view.js b/assets/src/legacy/view.js index c6a84d7983..4aa0e0a276 100644 --- a/assets/src/legacy/view.js +++ b/assets/src/legacy/view.js @@ -14,7 +14,9 @@ var searchProjects = function(){ // Activate tooltips const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); - [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); + [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl, { + trigger: 'hover' + })); // Handle keywords/title toggle $('#toggle-search').click(function(){ diff --git a/assets/src/modules/ExecuteJSFromServer.js b/assets/src/modules/ExecuteJSFromServer.js index 0d9a03e0c9..e6002e9df0 100644 --- a/assets/src/modules/ExecuteJSFromServer.js +++ b/assets/src/modules/ExecuteJSFromServer.js @@ -41,7 +41,7 @@ export default function executeJSFromServer() { const tooltipTriggerList = document.querySelectorAll('#mapmenu .nav-list > li > a'); [...tooltipTriggerList].map(tooltipTriggerEl => { bootstrap.Tooltip.getInstance(tooltipTriggerEl).dispose(); - new bootstrap.Tooltip(tooltipTriggerEl, { placement: 'bottom' }); + new bootstrap.Tooltip(tooltipTriggerEl, { placement: 'bottom', trigger: 'hover' }); }); // move search tool