@syncfusion/ej2-splitbuttons 24.1.44 → 24.1.45

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.
@@ -383,15 +383,21 @@ let DropDownButton = class DropDownButton extends Component {
383
383
  li.classList.add('e-blank-icon');
384
384
  }
385
385
  }
386
+ const beforeDisabled = item.disabled;
386
387
  if (item.disabled) {
387
388
  li.classList.add('e-disabled');
388
389
  }
389
390
  eventArgs = { item: item, element: li };
390
391
  this.trigger('beforeItemRender', eventArgs);
391
- if (eventArgs.item.disabled && !li.classList.contains('e-disabled')) {
392
- li.classList.add('e-disabled');
392
+ const afterDisabled = eventArgs.item.disabled;
393
+ if (beforeDisabled !== afterDisabled) {
394
+ if (eventArgs.item.disabled) {
395
+ li.classList.add('e-disabled');
396
+ }
397
+ else {
398
+ li.classList.remove('e-disabled');
399
+ }
393
400
  }
394
-
395
401
  ul.appendChild(li);
396
402
  }
397
403
  if (appendItems) {