@rsuci/shared-form-components 1.0.28 → 1.0.29

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.
@@ -8,7 +8,7 @@ import { applyComponentStyle } from '../../utils/styleUtils';
8
8
  import { isComponentReadonly, readonlyClasses } from '../../utils/componentStateUtils';
9
9
  const NumberInput = ({ variable, value, onChange, onBlur, error, disabled, valeurMin, isConsultationMode = false }) => {
10
10
  const props = variable.proprietes;
11
- const numericValue = value || '';
11
+ const numericValue = value !== null && value !== undefined ? value : '';
12
12
  const { textStyle, containerStyle } = applyComponentStyle(variable.componentStyle);
13
13
  // Déterminer si le composant est en lecture seule
14
14
  const isReadonly = isComponentReadonly(variable, isConsultationMode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsuci/shared-form-components",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "Composants partagés de rendu de formulaires RSU v2 - Package local pour frontend Admin et Public",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",