pull/4649/head
Tuğçe Küçükoğlu 2023-10-17 10:13:19 +03:00
parent 5b876bebfc
commit 2767c54b30
1 changed files with 7 additions and 6 deletions

View File

@ -152,16 +152,17 @@ const Tooltip = BaseTooltip.extend('tooltip', {
onMouseLeave(event) {
const el = event.currentTarget;
const hideDelay = el.$_ptooltipHideDelay;
const autoHide = el.$_ptooltipAutoHide;
if (!autoHide) {
const valid =
DomHandler.hasClass(event.target, 'p-tooltip') ||
DomHandler.hasClass(event.target, 'p-tooltip-arrow') ||
DomHandler.hasClass(event.target, 'p-tooltip-text') ||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip') ||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip-text') ||
DomHandler.hasClass(event.relatedTarget, 'p-tooltip-arrow');
DomHandler.getAttribute(event.target, 'data-pc-name') === 'tooltip' ||
DomHandler.getAttribute(event.target, 'data-pc-section') === 'arrow' ||
DomHandler.getAttribute(event.target, 'data-pc-section') === 'text' ||
DomHandler.getAttribute(event.relatedTarget, 'data-pc-name') === 'tooltip' ||
DomHandler.getAttribute(event.relatedTarget, 'data-pc-section') === 'arrow' ||
DomHandler.getAttribute(event.relatedTarget, 'data-pc-section') === 'text';
!valid && this.hide(el, hideDelay);
} else {