#6443 fix: v-tooltip -> getTarget: Correctly fallback to el when findSingle returns null
closes #6443pull/6509/head
parent
94fc8c6da8
commit
d9f54dadb5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue