Skip to content

Commit

Permalink
Merge pull request #6509 from avramz/fix/tooltip
Browse files Browse the repository at this point in the history
#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when find…
  • Loading branch information
tugcekucukoglu authored Oct 2, 2024
2 parents 3e93ac1 + d9f54da commit f247f28
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 f247f28

Please sign in to comment.