Fixed #4737 - Tooltip: autoHide does not work properly

pull/4759/head
tugcekucukoglu 2023-11-02 10:53:45 +03:00
parent 1d365fd480
commit 1448e92459
2 changed files with 2 additions and 3 deletions

View File

@ -152,7 +152,6 @@ const Tooltip = BaseTooltip.extend('tooltip', {
onMouseLeave(event) {
const el = event.currentTarget;
const hideDelay = el.$_ptooltipHideDelay;
const autoHide = el.$_ptooltipAutoHide;
if (!autoHide) {
@ -282,7 +281,8 @@ const Tooltip = BaseTooltip.extend('tooltip', {
role: 'tooltip',
style: {
display: 'inline-block',
width: el.$_ptooltipFitContent ? 'fit-content' : undefined
width: el.$_ptooltipFitContent ? 'fit-content' : undefined,
pointerEvents: el.$_ptooltipAutoHide && 'none'
},
class: [!this.isUnstyled() && this.cx('root'), el.$_ptooltipClass],
'p-bind': this.ptm('root', {

View File

@ -5,7 +5,6 @@ const css = `
.p-tooltip {
position:absolute;
display:none;
pointer-events: none;
padding: .25em .5rem;
max-width: 12.5rem;
}