@dartech/arsenal-ui 1.4.46 → 1.4.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2509,7 +2509,8 @@ const ControlNumberInput = _a => {
2509
2509
  rules: {
2510
2510
  required: required ? textError.required : false,
2511
2511
  validate: val => {
2512
- if (val === null || val === 0) {
2512
+ if (+val === 0) return true;
2513
+ if (val === null) {
2513
2514
  return required ? textError.required : true;
2514
2515
  }
2515
2516
  if (decimal && !floatsOnly.test(val) || /^-*0+$/.test(val)) {
@@ -6828,7 +6829,7 @@ const PropertyFiller = ({
6828
6829
  parseValue: true,
6829
6830
  hideErrorMessage: true,
6830
6831
  useCleanValue: true,
6831
- mode: propertyType === PropertyType.ANY ? 'text' : 'json'
6832
+ mode: propertyType === PropertyType.ANY || propertyType === PropertyType.JSON ? 'text' : 'json'
6832
6833
  }) : jsx(ControlInput, {
6833
6834
  control: control,
6834
6835
  name: name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.46",
3
+ "version": "1.4.47",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"