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