From b68cc42d9a5e5f7acfacf00a37a35056f67e688e Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Tue, 25 Nov 2025 02:46:11 +0100 Subject: [PATCH] Make sure the tooltip is only visible on hover Signed-off-by: Liviu-Mihail Concioiu --- resources/js/modules/functions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/modules/functions.ts b/resources/js/modules/functions.ts index 90291a8e95..2be62682bd 100644 --- a/resources/js/modules/functions.ts +++ b/resources/js/modules/functions.ts @@ -198,10 +198,10 @@ export function addDateTimePicker () { // Add a tip regarding entering MySQL allowed-values for TIME and DATE data-type if (this.classList.contains('timefield')) { - bootstrap.Tooltip.getOrCreateInstance(this, { title: window.Messages.strMysqlAllowedValuesTipTime }) + bootstrap.Tooltip.getOrCreateInstance(this, { title: window.Messages.strMysqlAllowedValuesTipTime, trigger: 'hover' }) .setContent({ '.tooltip-inner': window.Messages.strMysqlAllowedValuesTipTime }); } else if (this.classList.contains('datefield')) { - bootstrap.Tooltip.getOrCreateInstance(this, { title: window.Messages.strMysqlAllowedValuesTipDate }) + bootstrap.Tooltip.getOrCreateInstance(this, { title: window.Messages.strMysqlAllowedValuesTipDate, trigger: 'hover' }) .setContent({ '.tooltip-inner': window.Messages.strMysqlAllowedValuesTipDate }); } });