Skip to content

Commit

Permalink
#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when find…
Browse files Browse the repository at this point in the history
…Single returns null

closes #6443
  • Loading branch information
avramz committed Oct 1, 2024
1 parent 94fc8c6 commit d9f54da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9f54da

Please sign in to comment.