@movalib/movalib-commons 1.0.43 → 1.0.44
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.
|
@@ -17,7 +17,7 @@ var MovaVehicleTireField = function (_a) {
|
|
|
17
17
|
var _d = (0, react_1.useState)(false), error = _d[0], setError = _d[1];
|
|
18
18
|
var _e = (0, react_1.useState)(0), lastLength = _e[0], setLastLength = _e[1]; // Ajout d'un état pour stocker la longueur précédente
|
|
19
19
|
(0, react_1.useEffect)(function () {
|
|
20
|
-
|
|
20
|
+
setRawValue((0, Tools_1.formatVehicleTire)(vehicleTire));
|
|
21
21
|
setTireInfo((0, Tools_1.formatVehicleTire)(vehicleTire));
|
|
22
22
|
}, [vehicleTire]);
|
|
23
23
|
(0, react_1.useEffect)(function () {
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ const MovaVehicleTireField: FC<MovaVehicleTireFieldProps> = ({ vehicleTire, onCh
|
|
|
19
19
|
const [lastLength, setLastLength] = useState<number>(0); // Ajout d'un état pour stocker la longueur précédente
|
|
20
20
|
|
|
21
21
|
useEffect(() => {
|
|
22
|
-
|
|
22
|
+
setRawValue(formatVehicleTire(vehicleTire));
|
|
23
23
|
setTireInfo(formatVehicleTire(vehicleTire));
|
|
24
24
|
}, [vehicleTire]);
|
|
25
25
|
|