linear-react-components-ui 1.0.10-beta.14 → 1.0.10-beta.15

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.
@@ -95,7 +95,7 @@ var IMaskHOC = function IMaskHOC(ComposedComponent) {
95
95
  var dontInitMask = hideContent || unvisible || skeletonize;
96
96
  var disableCallbacks = disabled || readOnly;
97
97
  var setValue = function setValue(newValue) {
98
- if (maskRef.current) {
98
+ if (maskRef.current && newValue) {
99
99
  if (props.unmask) maskRef.current.unmaskedValue = newValue.toString();
100
100
  maskRef.current.value = String(newValue);
101
101
  }
@@ -168,7 +168,7 @@ var IMaskHOC = function IMaskHOC(ComposedComponent) {
168
168
  }
169
169
  } else if (!dontInitMask) {
170
170
  destroyMask();
171
- if (value && elementRef.current) elementRef.current.value = value;
171
+ if (value && elementRef.current) elementRef.current.value = value.toString();
172
172
  }
173
173
  }, [value, isDateField]);
174
174
  (0, _react.useEffect)(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.0.10-beta.14",
3
+ "version": "1.0.10-beta.15",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",