odaptos_design_system 1.4.233 → 1.4.235

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.
@@ -12948,7 +12948,12 @@ const TabsUnderline = ({
12948
12948
  onChange(index, tabs[index].value);
12949
12949
  };
12950
12950
  React.useEffect(() => {
12951
- setValue(defaultValue);
12951
+ if (defaultValue === undefined) return;
12952
+ if (defaultValue !== value) {
12953
+ console.log('ON CHANGE', defaultValue);
12954
+ setValue(defaultValue);
12955
+ onChange(defaultValue, tabs[defaultValue].value);
12956
+ }
12952
12957
  }, [defaultValue]);
12953
12958
  React.useEffect(() => {
12954
12959
  console.log('value', value);