labsense-ui-kit 1.3.78 → 1.3.79

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 CHANGED
@@ -10936,6 +10936,14 @@ var Sidebar = function Sidebar(_ref26) {
10936
10936
  isExpandedRef.current = isExpanded;
10937
10937
  if (!isExpanded) setOpenMenus({});
10938
10938
  }, [isExpanded]);
10939
+ React.useEffect(function () {
10940
+ if (isMobile && !isMobileOpen) {
10941
+ setOpenMenus({});
10942
+ }
10943
+ if (isMobile) {
10944
+ setIsExpanded(true);
10945
+ }
10946
+ }, [isMobile, isMobileOpen]);
10939
10947
  var toggleMobileMenu = React.useCallback(function () {
10940
10948
  setIsMobileOpen(function (prev) {
10941
10949
  return !prev;
@@ -11236,7 +11244,7 @@ var Sidebar = function Sidebar(_ref26) {
11236
11244
  isActive: active,
11237
11245
  isOpen: isOpen,
11238
11246
  hasChildren: hasChildren,
11239
- isExpanded: isMobile ? isMobileOpen : isExpanded,
11247
+ isExpanded: isMobile ? true : isExpanded,
11240
11248
  onToggle: function onToggle() {
11241
11249
  return toggleMenu(item.id);
11242
11250
  },