allaw-ui 5.3.0 → 5.3.1

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.
@@ -127,11 +127,14 @@ var Input = forwardRef(function (_a, ref) {
127
127
  // Valider en interne d'abord
128
128
  validateInput();
129
129
  if (!onBlur) return [3 /*break*/, 2];
130
- console.log("[Input".concat(title ? " \"".concat(title, "\"") : "", "] calling onBlur callback..."));
130
+ console.log("[Input".concat(title ? " \"".concat(title, "\"") : "", "] Calling onBlur callback"));
131
131
  return [4 /*yield*/, onBlur()];
132
132
  case 1:
133
133
  _a.sent();
134
- console.log("[Input".concat(title ? " \"".concat(title, "\"") : "", "] onBlur callback completed"));
134
+ console.log("[Input".concat(title ? " \"".concat(title, "\"") : "", "] onBlur callback completed, re-validating to display error"));
135
+ // RE-VALIDER après que onBlur ait mis à jour le prop error
136
+ // Cela force le re-render avec l'erreur RHF visible
137
+ validateInput();
135
138
  _a.label = 2;
136
139
  case 2: return [2 /*return*/];
137
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",