@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.1.44
3
+ * version : 24.1.45
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@24.1.41",
3
+ "_id": "@syncfusion/ej2-splitbuttons@24.1.44",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-vv15JMiyQzQd2EY4BButNEQyk3aBBpUqAwGyc3TpJpQH+XDo3kR7FZNrAeFlp+63lHwMHE31HfRFswlltmTkbA==",
5
+ "_integrity": "sha512-SKKpNooboDsFPmWGU/g+uyT+0VELBwp03B5+9xuRlItyQxWa/nLCrvQbCnKF8wKfaccdgIsekjvmQe3Za5kwtQ==",
6
6
  "_location": "/@syncfusion/ej2-splitbuttons",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -33,8 +33,8 @@
33
33
  "/@syncfusion/ej2-richtexteditor",
34
34
  "/@syncfusion/ej2-vue-splitbuttons"
35
35
  ],
36
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.1.41.tgz",
37
- "_shasum": "b458731702726abc7a6f950dfdc7e25ddd9fb4c6",
36
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.1.44.tgz",
37
+ "_shasum": "2905a41c62ab7bf1066e2321e1b2e4dd58555d82",
38
38
  "_spec": "@syncfusion/ej2-splitbuttons@*",
39
39
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
40
40
  "author": {
@@ -89,6 +89,6 @@
89
89
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
90
90
  },
91
91
  "typings": "index.d.ts",
92
- "version": "24.1.44",
92
+ "version": "24.1.45",
93
93
  "sideEffects": false
94
94
  }
@@ -240,15 +240,21 @@ var DropDownButton = /** @class */ (function (_super) {
240
240
  li.classList.add('e-blank-icon');
241
241
  }
242
242
  }
243
+ var beforeDisabled = item.disabled;
243
244
  if (item.disabled) {
244
245
  li.classList.add('e-disabled');
245
246
  }
246
247
  eventArgs = { item: item, element: li };
247
248
  this.trigger('beforeItemRender', eventArgs);
248
- if (eventArgs.item.disabled && !li.classList.contains('e-disabled')) {
249
- li.classList.add('e-disabled');
249
+ var afterDisabled = eventArgs.item.disabled;
250
+ if (beforeDisabled !== afterDisabled) {
251
+ if (eventArgs.item.disabled) {
252
+ li.classList.add('e-disabled');
253
+ }
254
+ else {
255
+ li.classList.remove('e-disabled');
256
+ }
250
257
  }
251
- ;
252
258
  ul.appendChild(li);
253
259
  }
254
260
  if (appendItems) {