@syncfusion/ej2-navigations 25.1.38 → 25.1.39

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.
@@ -1526,12 +1526,15 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1526
1526
  else if ((action === DOWNARROW) || (action === RIGHTARROW)) {
1527
1527
  index++;
1528
1528
  }
1529
+ else if (action === 'tab' && cli.classList.contains(SEPARATOR)) {
1530
+ index++;
1531
+ }
1529
1532
  else {
1530
1533
  index--;
1531
1534
  }
1532
1535
  }
1533
1536
  cli = cul.children[index];
1534
- if (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE)) {
1537
+ if (cli && (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE))) {
1535
1538
  index = this.isValidLI(cli, index, action);
1536
1539
  }
1537
1540
  return index;
@@ -4054,7 +4057,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4054
4057
  itemObj = tempItem;
4055
4058
  }
4056
4059
  var eventArgs = { originalEvent: e, item: itemObj };
4057
- if (itemObj && !isNullOrUndefined(itemObj.click)) {
4060
+ var isClickBinded = (this.isAngular) ? itemObj && !isNullOrUndefined(itemObj.click) && itemObj.click.observers.length > 0 : itemObj && !isNullOrUndefined(itemObj.click);
4061
+ if (isClickBinded) {
4058
4062
  this.trigger('items[' + this.tbarEle.indexOf(clst) + '].click', eventArgs);
4059
4063
  }
4060
4064
  if (!eventArgs.cancel) {
@@ -12670,7 +12674,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12670
12674
  var nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);
12671
12675
  this.setFocus(li, nextNode);
12672
12676
  this.navigateToFocus(!isTowards);
12673
- if (nextNode.classList.contains('e-disable')) {
12677
+ if (nextNode.classList.contains('e-disable') || nextNode.classList.contains('e-prevent')) {
12674
12678
  var lastChild = nextNode.lastChild;
12675
12679
  if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {
12676
12680
  this.focusNextNode(nextNode, true);
@@ -12750,7 +12754,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12750
12754
  TreeView.prototype.focusIn = function () {
12751
12755
  if (!this.mouseDownStatus) {
12752
12756
  var focusedElement = this.getFocusedNode();
12753
- if (focusedElement.classList.contains('e-disable')) {
12757
+ if (focusedElement.classList.contains('e-disable') || focusedElement.classList.contains('e-prevent')) {
12754
12758
  focusedElement.setAttribute("tabindex", "-1");
12755
12759
  this.navigateNode(true);
12756
12760
  }
@@ -19375,7 +19379,7 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
19375
19379
  }
19376
19380
  var prevOnChange = this.isProtectedOnChange;
19377
19381
  this.isProtectedOnChange = true;
19378
- this.activeStep = index;
19382
+ this.activeStep = parseInt(index.toString(), 10);
19379
19383
  this.isProtectedOnChange = prevOnChange;
19380
19384
  for (var i = 0; i < this.steps.length; i++) {
19381
19385
  var itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];