diff --git a/packages/primevue/src/tooltip/Tooltip.js b/packages/primevue/src/tooltip/Tooltip.js index e9e62c610..a043d5288 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