react-better-html 1.1.201-beta → 1.1.203
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9397,7 +9397,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
|
|
|
9397
9397
|
const isCollapsed = sideMenuIsCollapsed && !mediaQuery.size1000;
|
|
9398
9398
|
const onClickElement = useCallback16(() => {
|
|
9399
9399
|
if (item.disabled) return;
|
|
9400
|
-
setActiveItem(void 0);
|
|
9400
|
+
if (!item.children) setActiveItem(void 0);
|
|
9401
9401
|
if (item.children) {
|
|
9402
9402
|
setSideMenuIsCollapsed.setFalse();
|
|
9403
9403
|
if (isCollapsed) setTimeout(setIsOpened.setTrue, 0.1 * 1e3);
|