Изменено значение по умолчанию для параметра trigger

This commit is contained in:
2026-05-19 23:33:20 +04:00
parent 9bbc4502fc
commit f1e8f86ce9
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ createTooltip(document.querySelector('button'), 'Подсказка', {
placement: 'top', placement: 'top',
shiftPadding: [8, 0], shiftPadding: [8, 0],
theme: 'light', theme: 'light',
trigger: 'mouseenter', trigger: 'mouseenter click',
virtualReference: undefined, virtualReference: undefined,
zIndex: '', zIndex: '',
// Callback-функции, по умолчанию не заданы // Callback-функции, по умолчанию не заданы

View File

@@ -42,7 +42,7 @@ export const createTooltip = ($el, content, options) => {
placement: 'top', placement: 'top',
shiftPadding: [8, 0], shiftPadding: [8, 0],
theme: 'light', theme: 'light',
trigger: 'mouseenter', trigger: 'mouseenter click',
virtualReference: undefined, virtualReference: undefined,
zIndex: '', zIndex: '',
...options, ...options,