Merge pull request #6509 from avramz/fix/tooltip
#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when find…pull/6537/head
commit
f247f28fb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue