@startlibs/form 1.0.7 → 1.0.9

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/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -37,9 +37,9 @@ import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstruct
37
37
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
38
38
  import _inherits from '@babel/runtime/helpers/inherits';
39
39
  import _concat from 'lodash/fp/concat';
40
- import _last from 'lodash/fp/last';
41
40
  import _without from 'lodash/fp/without';
42
41
  import _isEqual from 'lodash/fp/isEqual';
42
+ import _last from 'lodash/fp/last';
43
43
  import ContentEditable from 'react-contenteditable';
44
44
  import _isObject from 'lodash/fp/isObject';
45
45
  import _unionBy from 'lodash/fp/unionBy';
@@ -3105,7 +3105,7 @@ var AutoComplete = React.forwardRef(function (_ref, outerRef) {
3105
3105
  _setFormValue = _useInput2[1],
3106
3106
  hasErrors = _useInput2[2].hasErrors;
3107
3107
 
3108
- var _useState = useState(Date.now()),
3108
+ var _useState = useState(_last(formValue) === "" ? formValue : formValue.concat("")),
3109
3109
  _useState2 = _slicedToArray(_useState, 2),
3110
3110
  localFormValue = _useState2[0],
3111
3111
  setLocalFormValue = _useState2[1];
@@ -3642,7 +3642,7 @@ function (_React$Component) {
3642
3642
  onPaste: this.onPaste,
3643
3643
  value: value,
3644
3644
  index: index,
3645
- html: valueOrBlank.replace(/\s/, ' ')
3645
+ html: valueOrBlank.replace(/\s$/, ' ')
3646
3646
  }, rest, {
3647
3647
  onChange: this.onChange
3648
3648
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startlibs/form",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Startlibs Form",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,