diff --git a/src/usePopper.js b/src/usePopper.js index 762170e..0e2b452 100644 --- a/src/usePopper.js +++ b/src/usePopper.js @@ -107,6 +107,17 @@ export const usePopper = ( useIsomorphicLayoutEffect(() => { if (referenceElement == null || popperElement == null) { + popperInstanceRef.current = null; + setState({ + styles: { + popper: { + position: optionsWithDefaults.strategy, + left: '0', + top: '0', + }, + }, + attributes: {}, + }); return; }