@gpa-gemstone/react-forms 1.1.72 → 1.1.73

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.
Files changed (2) hide show
  1. package/lib/Input.js +3 -0
  2. package/package.json +2 -2
package/lib/Input.js CHANGED
@@ -68,6 +68,7 @@ function Input(props) {
68
68
  // Handle value change of the input.
69
69
  function valueChange(value) {
70
70
  var _a, _b, _c;
71
+ var _d;
71
72
  internal.current = true;
72
73
  var allowNull = props.AllowNull === undefined ? false : props.AllowNull;
73
74
  if (props.Type === 'number') {
@@ -90,6 +91,8 @@ function Input(props) {
90
91
  }
91
92
  }
92
93
  else {
94
+ if (props.Type === 'text' && ((_d = props.AllowNull) !== null && _d !== void 0 ? _d : false))
95
+ console.warn("Input component: Empty strings are set to null for Type='text' and AllowNull=true to maintain current functionality.");
93
96
  props.Setter(__assign(__assign({}, props.Record), (_c = {}, _c[props.Field] = value !== '' ? value : null, _c)));
94
97
  setHeldVal(value);
95
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.72",
3
+ "version": "1.1.73",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@gpa-gemstone/application-typings": "0.0.77",
49
- "@gpa-gemstone/gpa-symbols": "0.0.41",
49
+ "@gpa-gemstone/gpa-symbols": "0.0.42",
50
50
  "@gpa-gemstone/helper-functions": "0.0.35",
51
51
  "@types/react": "^17.0.14",
52
52
  "@types/styled-components": "^5.1.11",