@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.
@@ -1450,12 +1450,15 @@ let MenuBase = class MenuBase extends Component {
1450
1450
  else if ((action === DOWNARROW) || (action === RIGHTARROW)) {
1451
1451
  index++;
1452
1452
  }
1453
+ else if (action === 'tab' && cli.classList.contains(SEPARATOR)) {
1454
+ index++;
1455
+ }
1453
1456
  else {
1454
1457
  index--;
1455
1458
  }
1456
1459
  }
1457
1460
  cli = cul.children[index];
1458
- if (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE)) {
1461
+ if (cli && (cli.classList.contains(SEPARATOR) || cli.classList.contains(DISABLED) || cli.classList.contains(HIDE))) {
1459
1462
  index = this.isValidLI(cli, index, action);
1460
1463
  }
1461
1464
  return index;
@@ -3914,7 +3917,8 @@ let Toolbar = class Toolbar extends Component {
3914
3917
  itemObj = tempItem;
3915
3918
  }
3916
3919
  const eventArgs = { originalEvent: e, item: itemObj };
3917
- if (itemObj && !isNullOrUndefined(itemObj.click)) {
3920
+ let isClickBinded = (this.isAngular) ? itemObj && !isNullOrUndefined(itemObj.click) && itemObj.click.observers.length > 0 : itemObj && !isNullOrUndefined(itemObj.click);
3921
+ if (isClickBinded) {
3918
3922
  this.trigger('items[' + this.tbarEle.indexOf(clst) + '].click', eventArgs);
3919
3923
  }
3920
3924
  if (!eventArgs.cancel) {
@@ -12330,7 +12334,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12330
12334
  let nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);
12331
12335
  this.setFocus(li, nextNode);
12332
12336
  this.navigateToFocus(!isTowards);
12333
- if (nextNode.classList.contains('e-disable')) {
12337
+ if (nextNode.classList.contains('e-disable') || nextNode.classList.contains('e-prevent')) {
12334
12338
  let lastChild = nextNode.lastChild;
12335
12339
  if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {
12336
12340
  this.focusNextNode(nextNode, true);
@@ -12410,7 +12414,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12410
12414
  focusIn() {
12411
12415
  if (!this.mouseDownStatus) {
12412
12416
  let focusedElement = this.getFocusedNode();
12413
- if (focusedElement.classList.contains('e-disable')) {
12417
+ if (focusedElement.classList.contains('e-disable') || focusedElement.classList.contains('e-prevent')) {
12414
12418
  focusedElement.setAttribute("tabindex", "-1");
12415
12419
  this.navigateNode(true);
12416
12420
  }
@@ -18878,7 +18882,7 @@ let Stepper = class Stepper extends StepperBase {
18878
18882
  }
18879
18883
  const prevOnChange = this.isProtectedOnChange;
18880
18884
  this.isProtectedOnChange = true;
18881
- this.activeStep = index;
18885
+ this.activeStep = parseInt(index.toString(), 10);
18882
18886
  this.isProtectedOnChange = prevOnChange;
18883
18887
  for (let i = 0; i < this.steps.length; i++) {
18884
18888
  const itemElement = this.stepperItemElements[parseInt(i.toString(), 10)];