@syncfusion/ej2-navigations 28.1.39 → 28.2.3

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) {
@@ -11814,11 +11822,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11814
11822
  if (!isNullOrUndefined(firstUl)) {
11815
11823
  firstUl.setAttribute('role', treeAriaAttr.treeRole);
11816
11824
  this.setMultiSelect(this.allowMultiSelection);
11817
- var firstNode = select('.' + LISTITEM, this.element);
11818
- if (firstNode) {
11819
- firstNode.setAttribute('tabindex', '0');
11820
- this.updateIdAttr(null, firstNode);
11821
- }
11825
+ this.setNodeFocusable();
11822
11826
  if (this.allowTextWrap) {
11823
11827
  this.updateWrap();
11824
11828
  }
@@ -15513,6 +15517,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15513
15517
  }
15514
15518
  this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
15515
15519
  }
15520
+ this.setNodeFocusable();
15516
15521
  this.updateCheckedStateFromDS();
15517
15522
  if (this.showCheckBox && dropLi) {
15518
15523
  this.ensureParentCheckState(dropLi);
@@ -15910,6 +15915,13 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15910
15915
  this.doCheckBoxAction(nodes, false);
15911
15916
  }
15912
15917
  };
15918
+ TreeView.prototype.setNodeFocusable = function () {
15919
+ var firstNode = select('.' + LISTITEM, this.element);
15920
+ if (firstNode) {
15921
+ firstNode.setAttribute('tabindex', '0');
15922
+ this.updateIdAttr(null, firstNode);
15923
+ }
15924
+ };
15913
15925
  var TreeView_1;
15914
15926
  __decorate$8([
15915
15927
  Property(false)