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.
- package/dist/odaptos_design_system.cjs.development.js +6 -1
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +6 -1
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Tabs/TabsUnderLine.tsx +6 -1
|
@@ -12948,7 +12948,12 @@ const TabsUnderline = ({
|
|
|
12948
12948
|
onChange(index, tabs[index].value);
|
|
12949
12949
|
};
|
|
12950
12950
|
React.useEffect(() => {
|
|
12951
|
-
|
|
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);
|