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) { 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 {