Refactor #1511
parent
5b0263636d
commit
064ad749d8
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue