Make sure the tooltip is only visible on hover

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu 2025-11-25 02:46:11 +01:00
parent 00e34276bc
commit b68cc42d9a

View File

@ -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 });
}
});