From 0e750fdb1cf1bc868dfa869555687eb8a90157ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 10 Sep 2021 15:36:11 +0300 Subject: [PATCH] Fixed #1511 - Tooltip: crash when empty\null --- src/components/tooltip/Tooltip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/tooltip/Tooltip.js b/src/components/tooltip/Tooltip.js index 8ffa424db..01b304060 100755 --- a/src/components/tooltip/Tooltip.js +++ b/src/components/tooltip/Tooltip.js @@ -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; }