@syncfusion/ej2-navigations 28.1.37 → 28.1.41

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.
@@ -1423,6 +1423,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1423
1423
  };
1424
1424
  MenuBase.prototype.domKeyHandler = function (e) {
1425
1425
  if (e.keyCode === 27) {
1426
+ if (this.isMenuVisible()) {
1427
+ e.stopImmediatePropagation();
1428
+ }
1426
1429
  e.action = ESCAPE;
1427
1430
  this.leftEscKeyHandler(e);
1428
1431
  }
@@ -2356,7 +2359,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2356
2359
  args.curData[args.fields[fields.id]] = getUniqueID('menuitem');
2357
2360
  }
2358
2361
  if (isNullOrUndefined(args.curData.htmlAttributes)) {
2359
- args.curData.htmlAttributes = {};
2362
+ Object.defineProperty(args.curData, 'htmlAttributes', {
2363
+ value: {},
2364
+ writable: true,
2365
+ enumerable: true,
2366
+ configurable: true
2367
+ });
2360
2368
  }
2361
2369
  if (Browser.isIE) {
2362
2370
  if (!args.curData.htmlAttributes.role) {