@mackin.com/styleguide 9.2.3 → 9.2.4

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/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1090,6 +1090,9 @@ const Autocomplete = (p) => {
1090
1090
  (_b = getNextTabElement(listItemIndex, -1)) === null || _b === void 0 ? void 0 : _b.focus();
1091
1091
  }
1092
1092
  else if (e.key === 'Enter') {
1093
+ e.stopPropagation();
1094
+ // this will prevent the click event from firing in addition to this enter key event.
1095
+ e.preventDefault();
1093
1096
  onPickValue(v);
1094
1097
  }
1095
1098
  }, className: css.cx(buttonMarkerClass + listItemIndex, css.css({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "9.2.3",
3
+ "version": "9.2.4",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",