@dynamic-framework/ui-react 2.0.0-dev.18 → 2.0.0-dev.19

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
@@ -1128,6 +1128,9 @@ function DCollapse({ id, className, style, Component, hasSeparator = false, defa
1128
1128
  return next;
1129
1129
  });
1130
1130
  };
1131
+ React.useEffect(() => {
1132
+ setCollapsed(defaultCollapsed);
1133
+ }, [defaultCollapsed]);
1131
1134
  const { iconMap: { chevronDown, chevronUp, }, } = useDContext();
1132
1135
  const iconOpen = React.useMemo(() => iconOpenProp || chevronDown, [chevronDown, iconOpenProp]);
1133
1136
  const iconClose = React.useMemo(() => iconCloseProp || chevronUp, [chevronUp, iconCloseProp]);