@moda/om 15.11.1 → 15.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/om",
3
- "version": "15.11.1",
3
+ "version": "15.11.2",
4
4
  "description": "Moda Operandi design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -103,6 +103,16 @@ export const Popover: React.FC<PopoverProps> = ({
103
103
  return () => clearTimeout(stayingTimeout);
104
104
  }, [mode, smoothTransitioning]);
105
105
 
106
+ useEffect(() => {
107
+ if (!open) return;
108
+
109
+ if (smoothTransitioning) {
110
+ setMode(Mode.Opening);
111
+ }
112
+
113
+ setMode(Mode.Open);
114
+ }, [mode, open]);
115
+
106
116
  const isOpen =
107
117
  mode === Mode.AutoOpen || mode === Mode.Opening || mode === Mode.Open || mode === Mode.Closing;
108
118