@applica-software-guru/react-admin 1.3.148 → 1.3.149
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/components/ra-forms/LongForm/Tab.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +170 -168
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/LongForm/Tab.tsx +4 -1
package/package.json
CHANGED
|
@@ -58,10 +58,13 @@ function BaseItem(props: IBaseItemProps) {
|
|
|
58
58
|
badge: badge,
|
|
59
59
|
errors: errorsCount
|
|
60
60
|
});
|
|
61
|
+
}, [addItem, removeItem, label, icon, id, badge, index, errorsCount]);
|
|
62
|
+
|
|
63
|
+
useEffect(() => {
|
|
61
64
|
return () => {
|
|
62
65
|
removeItem(id);
|
|
63
66
|
};
|
|
64
|
-
}, [
|
|
67
|
+
}, [id]);
|
|
65
68
|
|
|
66
69
|
/* All tabs are rendered (not only the one in focus), to allow validation
|
|
67
70
|
on tabs not in focus. The tabs receive a `hidden` property, which they'll
|