@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.
- package/lib/index.js +3 -3
- 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(
|
|
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
|
});
|