@startlibs/form 1.0.8 → 1.0.10

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.
Binary file
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
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];
@@ -3385,6 +3385,9 @@ var AutoComplete = React.forwardRef(function (_ref, outerRef) {
3385
3385
  };
3386
3386
 
3387
3387
  var input = React.createElement(React.Fragment, null, React.createElement(AutoCompleteInput, {
3388
+ onKeyDown: function onKeyDown(e) {
3389
+ return e.key === ' ' && e.stopPropagation();
3390
+ },
3388
3391
  className: className,
3389
3392
  ref: ref,
3390
3393
  onFocus: autoCompleteList.length ? autoCompleteBox.open : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startlibs/form",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Startlibs Form",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -63,5 +63,6 @@
63
63
  "dependencies": {
64
64
  "react-window": "^1.8.6",
65
65
  "styled-components": "5.1.1"
66
- }
66
+ },
67
+ "packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54"
67
68
  }