Fixed #3568
parent
5b876bebfc
commit
2767c54b30
|
@ -152,16 +152,17 @@ const Tooltip = BaseTooltip.extend('tooltip', {
|
||||||
onMouseLeave(event) {
|
onMouseLeave(event) {
|
||||||
const el = event.currentTarget;
|
const el = event.currentTarget;
|
||||||
const hideDelay = el.$_ptooltipHideDelay;
|
const hideDelay = el.$_ptooltipHideDelay;
|
||||||
|
|
||||||
const autoHide = el.$_ptooltipAutoHide;
|
const autoHide = el.$_ptooltipAutoHide;
|
||||||
|
|
||||||
if (!autoHide) {
|
if (!autoHide) {
|
||||||
const valid =
|
const valid =
|
||||||
DomHandler.hasClass(event.target, 'p-tooltip') ||
|
DomHandler.getAttribute(event.target, 'data-pc-name') === 'tooltip' ||
|
||||||
DomHandler.hasClass(event.target, 'p-tooltip-arrow') ||
|
DomHandler.getAttribute(event.target, 'data-pc-section') === 'arrow' ||
|
||||||
DomHandler.hasClass(event.target, 'p-tooltip-text') ||
|
DomHandler.getAttribute(event.target, 'data-pc-section') === 'text' ||
|
||||||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip') ||
|
DomHandler.getAttribute(event.relatedTarget, 'data-pc-name') === 'tooltip' ||
|
||||||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip-text') ||
|
DomHandler.getAttribute(event.relatedTarget, 'data-pc-section') === 'arrow' ||
|
||||||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip-arrow');
|
DomHandler.getAttribute(event.relatedTarget, 'data-pc-section') === 'text';
|
||||||
|
|
||||||
!valid && this.hide(el, hideDelay);
|
!valid && this.hide(el, hideDelay);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue