Fixed #1511 - Tooltip: crash when empty\null

pull/1412/head
Tuğçe Küçükoğlu 2021-09-10 15:36:11 +03:00
parent 13dd5820b3
commit 0e750fdb1c
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,9 @@ const Tooltip = {
beforeMount(el, options) {
let target = getTarget(el);
target.$_ptooltipModifiers = getModifiers(options);
if (typeof options.value === 'string') {
if (!options.value) return;
else if (typeof options.value === 'string') {
target.$_ptooltipValue = options.value;
target.$_ptooltipDisabled = false;
}