pull/1544/head
mertsincan 2021-09-14 09:29:37 +03:00
parent 5b0263636d
commit 064ad749d8
1 changed files with 3 additions and 2 deletions

View File

@ -292,13 +292,14 @@ const Tooltip = {
let target = getTarget(el); let target = getTarget(el);
target.$_ptooltipModifiers = getModifiers(options); target.$_ptooltipModifiers = getModifiers(options);
if (!options.value) return;
if (typeof options.value === 'string') { if (typeof options.value === 'string') {
target.$_ptooltipValue = options.value; target.$_ptooltipValue = options.value;
target.$_ptooltipDisabled = false; target.$_ptooltipDisabled = false;
} }
else { else {
target.$_ptooltipValue = options.value.value; target.$_ptooltipValue = options.value.value;
target.$_ptooltipDisabled = options.value.disabled; target.$_ptooltipDisabled = options.value.disabled || false;
} }
} }
}; };