From d9f54dadb54f77c961bf9bbe5889d8daa9d8f125 Mon Sep 17 00:00:00 2001 From: uros Date: Tue, 1 Oct 2024 22:59:16 +0200 Subject: [PATCH] #6443 fix: v-tooltip -> getTarget: Correctly fallback to el when findSingle returns null closes #6443 --- packages/primevue/src/tooltip/Tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/tooltip/Tooltip.js b/packages/primevue/src/tooltip/Tooltip.js index e9e62c610b..a043d5288e 100755 --- a/packages/primevue/src/tooltip/Tooltip.js +++ b/packages/primevue/src/tooltip/Tooltip.js @@ -449,7 +449,7 @@ const Tooltip = BaseTooltip.extend('tooltip', { return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height; }, getTarget(el) { - return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') : el; + return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') ?? el : el; }, getModifiers(options) { // modifiers