@react-typed-forms/schemas 11.13.3 → 11.13.4

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/lib/index.js CHANGED
@@ -2350,9 +2350,9 @@ function createInputConversion(ft) {
2350
2350
  }];
2351
2351
  case exports.FieldType.Double:
2352
2352
  return ["number", function (a) {
2353
- return parseFloat(a);
2353
+ return a !== "" ? parseFloat(a) : null;
2354
2354
  }, function (a) {
2355
- return a;
2355
+ return a == null ? "" : a;
2356
2356
  }];
2357
2357
  default:
2358
2358
  return ["text", function (a) {