@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/CHANGELOG.md +7 -0
- package/dist/index.cjs.js +9 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Popover/Popover.tsx +10 -0
package/dist/index.esm.js
CHANGED
|
@@ -11348,6 +11348,15 @@ var Popover = function Popover(_ref) {
|
|
|
11348
11348
|
return clearTimeout(stayingTimeout);
|
|
11349
11349
|
};
|
|
11350
11350
|
}, [mode, smoothTransitioning]);
|
|
11351
|
+
useEffect(function () {
|
|
11352
|
+
if (!open) return;
|
|
11353
|
+
|
|
11354
|
+
if (smoothTransitioning) {
|
|
11355
|
+
setMode(Mode.Opening);
|
|
11356
|
+
}
|
|
11357
|
+
|
|
11358
|
+
setMode(Mode.Open);
|
|
11359
|
+
}, [mode, open]);
|
|
11351
11360
|
var isOpen = mode === Mode.AutoOpen || mode === Mode.Opening || mode === Mode.Open || mode === Mode.Closing;
|
|
11352
11361
|
return /*#__PURE__*/React__default.createElement("div", _extends$3({
|
|
11353
11362
|
className: classNames("Popover Popover--anchor-".concat(anchor), className),
|