Skip to content

Commit de77c4c

Browse files
author
pipeline
committed
v28.2.7 is released
1 parent f5d79ab commit de77c4c

File tree

173 files changed

+3220
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+3220
-488
lines changed

controls/barcodegenerator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 28.2.6 (2025-02-18)
5+
## 28.2.7 (2025-02-25)
66

77
### Barcode
88

controls/buttons/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 28.2.7 (2025-02-25)
6+
7+
### Button
8+
9+
#### Bug Fixes
10+
11+
- `#I692936` - The issue with "Script error thrown while destroying the button due to extra space in cssClass property" has been resolved.
12+
513
## 28.2.6 (2025-02-18)
614

715
### Checkbox

controls/buttons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-buttons",
3-
"version": "28.2.3",
3+
"version": "28.2.6",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/buttons/spec/button.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ describe('Button', () => {
345345
expect(element.classList.contains('e-btn')).toEqual(false);
346346
});
347347

348+
it('destroy method with extra space of cssClass property', () => {
349+
button = new Button({cssClass: 'e-custom '});
350+
button.appendTo('#button');
351+
button.cssClass = "e-custom e-css ";
352+
button.dataBind();
353+
button.destroy();
354+
expect(element.classList.contains('e-btn')).toEqual(false);
355+
});
356+
348357
it('getModuleName method', () => {
349358
button = new Button();
350359
button.appendTo('#button');

controls/buttons/src/button/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class Button extends Component<HTMLButtonElement> implements INotifyPrope
249249
'e-warning', 'e-flat', 'e-outline', 'e-small', 'e-bigger', 'e-active', 'e-round',
250250
'e-top-icon-btn', 'e-bottom-icon-btn'];
251251
if (this.cssClass) {
252-
classList = classList.concat(this.cssClass.split(' '));
252+
classList = classList.concat(this.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
253253
}
254254
super.destroy();
255255
removeClass([this.element], classList);
@@ -354,7 +354,7 @@ export class Button extends Component<HTMLButtonElement> implements INotifyPrope
354354
break;
355355
case 'cssClass':
356356
if (oldProp.cssClass) {
357-
removeClass([this.element], oldProp.cssClass.split(' '));
357+
removeClass([this.element], oldProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
358358
}
359359
if (newProp.cssClass) {
360360
addClass([this.element], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));

controls/buttons/src/check-box/check-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
475475
break;
476476
case 'cssClass':
477477
if (oldProp.cssClass) {
478-
removeClass([wrapper], oldProp.cssClass.split(' '));
478+
removeClass([wrapper], oldProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
479479
}
480480
if (newProp.cssClass) {
481481
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));

controls/buttons/src/radio-button/radio-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class RadioButton extends Component<HTMLInputElement> implements INotifyP
401401
break;
402402
case 'cssClass':
403403
if (oldProp.cssClass) {
404-
removeClass([wrap], oldProp.cssClass.split(' '));
404+
removeClass([wrap], oldProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
405405
}
406406
if (newProp.cssClass) {
407407
addClass([wrap], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));

controls/buttons/src/speed-dial/speed-dial.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,10 +1741,10 @@ export class SpeedDial extends Component<HTMLButtonElement> implements INotifyPr
17411741
case 'cssClass':
17421742
if (!this.popupEle) { break; }
17431743
if (oldProp.cssClass) {
1744-
removeClass(this.overlayEle ? [this.popupEle, this.overlayEle] : [this.popupEle], oldProp.cssClass.split(' '));
1744+
removeClass(this.overlayEle ? [this.popupEle, this.overlayEle] : [this.popupEle], oldProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
17451745
}
17461746
if (newProp.cssClass) {
1747-
addClass(this.overlayEle ? [this.popupEle, this.overlayEle] : [this.popupEle], newProp.cssClass.split(' '));
1747+
addClass(this.overlayEle ? [this.popupEle, this.overlayEle] : [this.popupEle], newProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
17481748
}
17491749
break;
17501750
case 'visible':

controls/buttons/src/switch/switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class Switch extends Component<HTMLInputElement> implements INotifyProper
331331
break;
332332
case 'cssClass':
333333
if (oldProp.cssClass) {
334-
removeClass([wrapper], oldProp.cssClass.split(' '));
334+
removeClass([wrapper], oldProp.cssClass.split(/\s+/).filter((c: string) => c.length > 0));
335335
}
336336
if (newProp.cssClass) {
337337
addClass([wrapper], newProp.cssClass.replace(/\s+/g, ' ').trim().split(' '));

controls/calendars/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 28.2.7 (2025-02-25)
6+
7+
### DatePicker
8+
9+
#### Bug Fixes
10+
11+
- `#I688316` - Fixed an issue where the month was not updating correctly when typing quickly.
12+
513
## 28.1.41 (2025-01-21)
614

715
### DatePicker

0 commit comments

Comments
 (0)