 +        offset = _instance$props2.offset,
 +        getReferenceClientRect = _instance$props2.getReferenceClientRect,
 +        moveTransition = _instance$props2.moveTransition;
-+    var arrow = isDefaultRenderFn(instance.props.render) ? getChildren(popper).arrow : null;
++    var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
 +    var computedReference = getReferenceClientRect ? {
 +      getBoundingClientRect: getReferenceClientRect
 +    } : reference;

-          clientHeight: 0,
-          getBoundingClientRect: function getBoundingClientRect() {
-            return getInlineBoundingClientRect(instance.state.currentPlacement && getBasePlacement(instance.state.currentPlacement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()));
+        instance.setProps({
+          popperOptions: {
+            modifiers: [].concat(((_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state.options.modifiers) || [], [modifier])
           }
-        };
+        });
       }
     };
   }
@@ -655,7 +2021,7 @@ var sticky = {
         popper = instance.popper;
 
     function getReference() {

+
+    instance.state.isVisible = false;
+    instance.state.isShown = false;
+    ignoreOnFirstUpdate = false;
+
+    if (getIsDefaultRenderFn()) {
+      popper.style.visibility = 'hidden';
+    }
+
+    cleanupInteractiveMouseListeners();
+    removeDocumentMouseDownListener();
+    handleInteractiveStyles();
+
+    if (getIsDefaultRenderFn()) {
+      var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
+          box = _getDefaultTemplateCh4.box,
+          content = _getDefaultTemplateCh4.content;
+
+      if (instance.props.animation) {
+        setTransitionDuration([box, content], duration);
