Skip to content

Commit d012c10

Browse files
author
pipeline
committed
v27.1.58 is released
1 parent 35d2ab5 commit d012c10

File tree

406 files changed

+20073
-454
lines changed

Some content is hidden

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

406 files changed

+20073
-454
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-
## 27.1.57 (2024-10-29)
5+
## 27.1.58 (2024-11-05)
66

77
### Barcode
88

controls/base/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-
## 27.1.57 (2024-10-29)
5+
## 27.1.58 (2024-11-05)
66

77
### Common
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+
## 27.1.58 (2024-11-05)
6+
7+
### Checkbox
8+
9+
#### Bug Fixes
10+
11+
- `#F95768`- The issue with "Checkbox not getting checked while using `usestate` in react" has been resolved.
12+
513
## 27.1.53 (2024-10-15)
614

715
### Checkbox

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { createCheckBox } from './../src/common/common';
2+
import { ChangeEventArgs, createCheckBox } from './../src/common/common';
33
import { CheckBox } from './../src/check-box/check-box';
44
import { createElement, EventHandler, attributes, enableRipple } from '@syncfusion/ej2-base';
55
import { profile , inMB, getMemoryProfile } from './common.spec';
@@ -428,6 +428,7 @@ describe('CheckBox', () => {
428428
let formElement: HTMLFormElement;
429429
let cbox: CheckBox;
430430
let cbox1: CheckBox;
431+
let cbox3: CheckBox;
431432

432433
beforeEach(() => {
433434

@@ -455,6 +456,14 @@ describe('CheckBox', () => {
455456
checkbox.checked = true; // Set the checkbox to checked
456457
checkbox.dataBind();
457458
});
459+
460+
let button = document.createElement('button');
461+
button.setAttribute('id', 'cbox3');
462+
document.body.appendChild(button);
463+
button.addEventListener('click', () => {
464+
cbox3.checked = !cbox3.checked;
465+
cbox3.dataBind();
466+
});
458467
})
459468

460469
afterEach(() => {
@@ -521,6 +530,25 @@ describe('CheckBox', () => {
521530
expect(checkbox.element.checked).toBe(false);
522531
checkbox.isVue = false;
523532
});
533+
534+
it('95768-Checkbox not getting checked while using usestate', () => {
535+
let isChecked = false;
536+
cbox3 = new CheckBox({
537+
checked: isChecked,
538+
change: (e: ChangeEventArgs) => {
539+
isChecked = e.checked;
540+
checkbox.dataBind();
541+
}
542+
}, '#checkbox3');
543+
let button = document.querySelector('#cbox3') as HTMLButtonElement;
544+
button.click();
545+
expect(cbox3.checked).toBeTruthy();
546+
expect(cbox3.element.checked).toBe(true);
547+
button = document.querySelector('#cbox3') as HTMLButtonElement;
548+
button.click();
549+
expect(cbox3.checked).toBeFalsy();
550+
expect(cbox3.element.checked).toBe(false);
551+
});
524552
});
525553

526554
describe('Notify Html Attributes property changes of', () => {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export class CheckBox extends Component<HTMLInputElement> implements INotifyProp
221221

222222
private clickHandler(event: Event): void {
223223
if ((event.target as HTMLElement).tagName === 'INPUT' && this.clickTriggered) {
224+
this.changeState(this.checked ? 'check' : 'uncheck');
224225
this.clickTriggered = false;
225226
return;
226227
}

controls/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 27.1.58 (2024-11-05)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#F188458` - Now the page scroll remains the same after clearing the series.
12+
- `#I647466` - The zoom settings properties are now properly updated on data binding.
13+
14+
### Accumulation Chart
15+
16+
#### Bug Fixes
17+
18+
- `I917094` - The series property now updates correctly on data binding.
19+
520
## 27.1.57 (2024-10-29)
621

722
### Chart

controls/charts/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-charts",
3-
"version": "27.1.55",
3+
"version": "27.1.57",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/charts/spec/chart/series/stacking-bar.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,18 @@ describe('Chart Control', () => {
11711171
chartObj.loaded = loaded;
11721172
chartObj.refresh();
11731173
});
1174+
it('Stacking bar - with transposed true and column width in pixel', (done: Function) => {
1175+
loaded = (args: Object): void => {
1176+
let legendElement = document.getElementById('Stackingbarcontainer_chart_legend_text_0');
1177+
trigger.clickEvent(legendElement);
1178+
expect(legendElement !== null).toBe(true);
1179+
done();
1180+
};
1181+
chartObj.loaded = loaded;
1182+
chartObj.series[0].columnWidthInPixel = 15;
1183+
chartObj.isTransposed = true;
1184+
chartObj.refresh();
1185+
});
11741186
});
11751187
it('memory leak', () => {
11761188
profile.sample();

controls/charts/src/accumulation-chart/accumulation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,6 +2456,7 @@ export class AccumulationChart extends Component<HTMLElement> implements INotify
24562456
}
24572457
}
24582458
if (seriesRefresh) {
2459+
this.calculateVisibleSeries();
24592460
this.processData(false); update.refreshBounds = true;
24602461
}
24612462
}

controls/charts/src/chart/axis/cartesian-panel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ export class CartesianAxisLayoutPanel {
542542
*/
543543
private renderScrollbar(chart: Chart, axis: Axis): void {
544544
const isZoomed: boolean = isNullOrUndefined(chart.zoomModule) ? false : chart.zoomModule.isZoomed;
545+
if (!axis.zoomingScrollBar) {
546+
chart.scrollBarModule.injectTo(axis, chart);
547+
}
545548
if (((isZoomed && (axis.zoomFactor < 1 || axis.zoomPosition > 0)) || (axis.scrollbarSettings.enable &&
546549
(axis.zoomFactor <= 1 || axis.zoomPosition >= 0))) &&
547550
(!axis.zoomingScrollBar.isScrollUI)) {
@@ -551,7 +554,8 @@ export class CartesianAxisLayoutPanel {
551554
);
552555
}
553556
appendChildElement(false, chart.scrollElement, axis.zoomingScrollBar.render(true), true);
554-
} else if (axis.zoomFactor === 1 && axis.zoomPosition === 0 && axis.zoomingScrollBar.svgObject && !axis.scrollbarSettings.enable) {
557+
} else if (axis.zoomFactor === 1 && axis.zoomPosition === 0 && axis.zoomingScrollBar.svgObject &&
558+
!axis.scrollbarSettings.enable) {
555559
axis.zoomingScrollBar.destroy();
556560
} else if (axis.zoomingScrollBar.svgObject) {
557561
(axis.zoomingScrollBar.svgObject as SVGElement).style.top = (axis.isAxisOpposedPosition && axis.orientation === 'Horizontal' ? -16 : 0)

0 commit comments

Comments
 (0)