@steroidsjs/core 3.0.0-beta.49 → 3.0.0-beta.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.0-beta.49",
3
+ "version": "3.0.0-beta.50",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -79,7 +79,7 @@ function InputField(props) {
79
79
  props.onClear = onClear;
80
80
  var inputProps = (0, react_1.useMemo)(function () {
81
81
  var _a;
82
- return (__assign({ type: props.type, name: props.input.name, value: (_a = props.input.value) !== null && _a !== void 0 ? _a : '', onChange: function (value) { return props.input.onChange(value); }, placeholder: props.placeholder, disabled: props.disabled }, props.inputProps));
82
+ return (__assign({ type: props.type, name: props.input.name, defaultValue: (_a = props.input.value) !== null && _a !== void 0 ? _a : '', onChange: function (value) { return props.input.onChange(value); }, placeholder: props.placeholder, disabled: props.disabled }, props.inputProps));
83
83
  }, [props.disabled, props.input, props.inputProps, props.placeholder, props.type]);
84
84
  // No render for hidden input
85
85
  if (props.type === 'hidden') {
@@ -92,6 +92,7 @@ InputField.defaultProps = {
92
92
  size: 'md',
93
93
  disabled: false,
94
94
  required: false,
95
- showClear: false
95
+ showClear: false,
96
+ maskOptions: null
96
97
  };
97
98
  exports["default"] = (0, fieldWrapper_1["default"])('InputField', InputField);