@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.
@@ -353,7 +353,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
353
353
  this.dropDown.refreshPosition(this.element);
354
354
  }
355
355
  this.dropDown.hide();
356
- attributes(this.element, (_a = {}, _a['aria-haspopup'] = this.items.length || this.target ? 'true' : 'false', _a['aria-expanded'] = 'false', _a['type'] = 'button', _a['aria-label'] = this.element.textContent ? this.element.textContent : 'dropdownbutton', _a));
356
+ attributes(this.element, (_a = {}, _a['aria-haspopup'] = this.items.length || this.target ? 'true' : 'false', _a['aria-expanded'] = 'false', _a['type'] = 'button', _a));
357
357
  if (this.cssClass) {
358
358
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
359
359
  }
@@ -452,6 +452,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
452
452
  }
453
453
  this.appendArrowSpan();
454
454
  this.setActiveElem([this.element]);
455
+ this.element.setAttribute('aria-label', this.element.textContent ? this.element.textContent : 'dropdownbutton');
455
456
  if ((this.target && !this.isColorPicker() && !this.createPopupOnClick) || !this.createPopupOnClick) {
456
457
  this.createPopup();
457
458
  }
@@ -690,7 +691,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
690
691
  var liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
691
692
  var item = this.items[liIdx];
692
693
  if (item) {
693
- var selectEventArgs = { element: li, item: item };
694
+ var selectEventArgs = { element: li, item: item, event: e };
694
695
  this.trigger('select', selectEventArgs);
695
696
  }
696
697
  }
@@ -727,7 +728,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
727
728
  liIdx = Array.prototype.indexOf.call(this.getULElement().children, li);
728
729
  item = this.items[liIdx];
729
730
  if (item) {
730
- eventArgs = { element: li, item: item };
731
+ eventArgs = { element: li, item: item, event: e };
731
732
  this.trigger('select', eventArgs);
732
733
  }
733
734
  this.closePopup(e, this.activeElem[0]);
@@ -1206,7 +1207,7 @@ var SplitButton = /** @__PURE__ @class */ (function (_super) {
1206
1207
  SplitButton.prototype.setAria = function () {
1207
1208
  attributes(this.element, {
1208
1209
  'aria-expanded': 'false', 'aria-haspopup': 'true',
1209
- 'aria-label': this.element.textContent + ' splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1210
+ 'aria-label': this.element.textContent ? this.element.textContent + ' splitbutton' : 'splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1210
1211
  });
1211
1212
  };
1212
1213
  /**