@doist/reactist 21.1.0 → 21.1.1
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/dist/reactist.cjs.development.js +3 -0
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/menu/menu.js +4 -1
- package/es/menu/menu.js.map +1 -1
- package/lib/menu/menu.js +1 -1
- package/lib/menu/menu.js.map +1 -1
- package/package.json +1 -1
- package/styles/modal.css +1 -1
- package/styles/modal.module.css.css +1 -1
|
@@ -2681,6 +2681,9 @@ function Menu(_ref) {
|
|
|
2681
2681
|
shift: 4,
|
|
2682
2682
|
getAnchorRect
|
|
2683
2683
|
}, props));
|
|
2684
|
+
React.useEffect(() => {
|
|
2685
|
+
if (!state.open) handleAnchorRectChange(null);
|
|
2686
|
+
}, [state.open]);
|
|
2684
2687
|
const handleItemSelect = React.useCallback(function handleItemSelect(value) {
|
|
2685
2688
|
if (onItemSelect) onItemSelect(value);
|
|
2686
2689
|
}, [onItemSelect]);
|