#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when findSingle returns null

closes #6443
pull/6509/head
uros 2024-10-01 22:59:16 +02:00
parent 94fc8c6da8
commit d9f54dadb5
1 changed files with 1 additions and 1 deletions

View File

@ -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