carbon-react 111.0.1 → 111.0.2

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.
@@ -176,6 +176,12 @@ const Submenu = /*#__PURE__*/React.forwardRef(({
176
176
  setCharacterString("");
177
177
  }
178
178
 
179
+ if (Events.isEnterKey(event)) {
180
+ /* timeout enforces that the "closeSubmenu" method will be run after
181
+ the browser navigates to the specified href of the menu-item. */
182
+ setTimeout(() => closeSubmenu());
183
+ }
184
+
179
185
  if (href && index === undefined) {
180
186
  if (Events.isEnterKey(event) || Events.isTabKey(event) && Events.isShiftKey(event)) {
181
187
  closeSubmenu();
@@ -204,6 +204,12 @@ const Submenu = /*#__PURE__*/_react.default.forwardRef(({
204
204
  setCharacterString("");
205
205
  }
206
206
 
207
+ if (_events.default.isEnterKey(event)) {
208
+ /* timeout enforces that the "closeSubmenu" method will be run after
209
+ the browser navigates to the specified href of the menu-item. */
210
+ setTimeout(() => closeSubmenu());
211
+ }
212
+
207
213
  if (href && index === undefined) {
208
214
  if (_events.default.isEnterKey(event) || _events.default.isTabKey(event) && _events.default.isShiftKey(event)) {
209
215
  closeSubmenu();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "111.0.1",
3
+ "version": "111.0.2",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",