@syncfusion/ej2-navigations 25.1.35 → 25.1.38

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.
@@ -3941,16 +3941,21 @@ let Toolbar = class Toolbar extends Component {
3941
3941
  popObj.enableRtl = false;
3942
3942
  popObj.position = { X: 'right', Y: 'top' };
3943
3943
  }
3944
- popObj.dataBind();
3945
- popObj.refreshPosition();
3946
- popObj.element.style.top = this.getElementOffsetY() + 'px';
3947
3944
  if (this.overflowMode === 'Extended') {
3948
3945
  popObj.element.style.minHeight = '0px';
3946
+ popObj.width = this.getToolbarPopupWidth(this.element);
3949
3947
  }
3948
+ popObj.dataBind();
3949
+ popObj.refreshPosition();
3950
+ popObj.element.style.top = this.getElementOffsetY() + 'px';
3950
3951
  popupNav.classList.add(CLS_TBARNAVACT);
3951
3952
  popObj.show({ name: 'FadeIn', duration: 100 });
3952
3953
  }
3953
3954
  }
3955
+ getToolbarPopupWidth(ele) {
3956
+ var eleStyles = window.getComputedStyle(ele);
3957
+ return parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
3958
+ }
3954
3959
  /**
3955
3960
  * To Initialize the control rendering
3956
3961
  *
@@ -4342,7 +4347,7 @@ let Toolbar = class Toolbar extends Component {
4342
4347
  position: this.enableRtl ? { X: 'left', Y: 'top' } : { X: 'right', Y: 'top' }
4343
4348
  });
4344
4349
  if (this.overflowMode === 'Extended') {
4345
- popup.width = parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
4350
+ popup.width = this.getToolbarPopupWidth(this.element);
4346
4351
  popup.offsetX = 0;
4347
4352
  }
4348
4353
  popup.appendTo(ele);
@@ -5373,8 +5378,7 @@ let Toolbar = class Toolbar extends Component {
5373
5378
  }
5374
5379
  if (this.popObj) {
5375
5380
  if (this.overflowMode === 'Extended') {
5376
- const eleStyles = window.getComputedStyle(this.element);
5377
- this.popObj.width = parseFloat(eleStyles.width) + ((parseFloat(eleStyles.borderRightWidth)) * 2);
5381
+ this.popObj.width = this.getToolbarPopupWidth(this.element);
5378
5382
  }
5379
5383
  if (this.tbarAlign) {
5380
5384
  this.removePositioning();
@@ -12406,11 +12410,17 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12406
12410
  focusIn() {
12407
12411
  if (!this.mouseDownStatus) {
12408
12412
  let focusedElement = this.getFocusedNode();
12409
- focusedElement.setAttribute("tabindex", "0");
12410
- addClass([focusedElement], FOCUS);
12411
- EventHandler.add(focusedElement, 'blur', this.focusOut, this);
12413
+ if (focusedElement.classList.contains('e-disable')) {
12414
+ focusedElement.setAttribute("tabindex", "-1");
12415
+ this.navigateNode(true);
12416
+ }
12417
+ else {
12418
+ focusedElement.setAttribute("tabindex", "0");
12419
+ addClass([focusedElement], FOCUS);
12420
+ EventHandler.add(focusedElement, 'blur', this.focusOut, this);
12421
+ }
12422
+ this.mouseDownStatus = false;
12412
12423
  }
12413
- this.mouseDownStatus = false;
12414
12424
  }
12415
12425
  focusOut(event) {
12416
12426
  let focusedElement = this.getFocusedNode();