@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [15.11.2](https://github.com/ModaOperandi/om/compare/v15.11.1...v15.11.2) (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **popover smooth transitioning:** fixes problem with auto triggering ([#2260](https://github.com/ModaOperandi/om/issues/2260)) ([4700f11](https://github.com/ModaOperandi/om/commit/4700f11641478123d6220f8bef7d4a0ce81daf45))
|
|
12
|
+
|
|
6
13
|
## [15.11.1](https://github.com/ModaOperandi/om/compare/v15.11.0...v15.11.1) (2021-12-10)
|
|
7
14
|
|
|
8
15
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -11375,6 +11375,15 @@ var Popover = function Popover(_ref) {
|
|
|
11375
11375
|
return clearTimeout(stayingTimeout);
|
|
11376
11376
|
};
|
|
11377
11377
|
}, [mode, smoothTransitioning]);
|
|
11378
|
+
React$2.useEffect(function () {
|
|
11379
|
+
if (!open) return;
|
|
11380
|
+
|
|
11381
|
+
if (smoothTransitioning) {
|
|
11382
|
+
setMode(Mode.Opening);
|
|
11383
|
+
}
|
|
11384
|
+
|
|
11385
|
+
setMode(Mode.Open);
|
|
11386
|
+
}, [mode, open]);
|
|
11378
11387
|
var isOpen = mode === Mode.AutoOpen || mode === Mode.Opening || mode === Mode.Open || mode === Mode.Closing;
|
|
11379
11388
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends$3({
|
|
11380
11389
|
className: classNames("Popover Popover--anchor-".concat(anchor), className),
|