@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.
- package/index.js +3 -0
- 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({
|