diff --git a/src/createTippy.ts b/src/createTippy.ts index 1006e712..7e64a3cf 100644 --- a/src/createTippy.ts +++ b/src/createTippy.ts @@ -214,9 +214,9 @@ export default function createTippy( ); } - function handleStyles(): void { + function handleStyles(fromHide = false): void { popper.style.pointerEvents = - instance.props.interactive && instance.state.isVisible ? '' : 'none'; + instance.props.interactive && !fromHide ? '' : 'none'; popper.style.zIndex = `${instance.props.zIndex}`; } @@ -1051,7 +1051,7 @@ export default function createTippy( cleanupInteractiveMouseListeners(); removeDocumentPress(); - handleStyles(); + handleStyles(true); if (getIsDefaultRenderFn()) { const {box, content} = getDefaultTemplateChildren();