Merge pull request #6509 from avramz/fix/tooltip

#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when find…
pull/6537/head
Tuğçe Küçükoğlu 2024-10-02 11:15:51 +03:00 committed by GitHub
commit f247f28fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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; return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
}, },
getTarget(el) { getTarget(el) {
return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') : el; return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') ?? el : el;
}, },
getModifiers(options) { getModifiers(options) {
// modifiers // modifiers