@syncfusion/ej2-splitbuttons 23.1.36 → 23.1.43

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.
@@ -319,7 +319,7 @@ let DropDownButton = class DropDownButton extends Component {
319
319
  this.dropDown.hide();
320
320
  attributes(this.element, {
321
321
  ['aria-haspopup']: this.items.length || this.target ? 'true' : 'false', ['aria-expanded']: 'false',
322
- ['type']: 'button', ['aria-label']: this.element.textContent ? this.element.textContent : 'dropdownbutton'
322
+ ['type']: 'button'
323
323
  });
324
324
  if (this.cssClass) {
325
325
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
@@ -419,6 +419,7 @@ let DropDownButton = class DropDownButton extends Component {
419
419
  }
420
420
  this.appendArrowSpan();
421
421
  this.setActiveElem([this.element]);
422
+ this.element.setAttribute('aria-label', this.element.textContent ? this.element.textContent : 'dropdownbutton');
422
423
  if ((this.target && !this.isColorPicker() && !this.createPopupOnClick) || !this.createPopupOnClick) {
423
424
  this.createPopup();
424
425
  }
@@ -656,7 +657,7 @@ let DropDownButton = class DropDownButton extends Component {
656
657
  const liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
657
658
  const item = this.items[liIdx];
658
659
  if (item) {
659
- const selectEventArgs = { element: li, item: item };
660
+ const selectEventArgs = { element: li, item: item, event: e };
660
661
  this.trigger('select', selectEventArgs);
661
662
  }
662
663
  }
@@ -693,7 +694,7 @@ let DropDownButton = class DropDownButton extends Component {
693
694
  liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
694
695
  item = this.items[liIdx];
695
696
  if (item) {
696
- eventArgs = { element: li, item: item };
697
+ eventArgs = { element: li, item: item, event: e };
697
698
  this.trigger('select', eventArgs);
698
699
  }
699
700
  this.closePopup(e, this.activeElem[0]);
@@ -1151,7 +1152,7 @@ let SplitButton = class SplitButton extends DropDownButton {
1151
1152
  setAria() {
1152
1153
  attributes(this.element, {
1153
1154
  'aria-expanded': 'false', 'aria-haspopup': 'true',
1154
- 'aria-label': this.element.textContent + ' splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1155
+ 'aria-label': this.element.textContent ? this.element.textContent + ' splitbutton' : 'splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1155
1156
  });
1156
1157
  }
1157
1158
  /**