mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
only toggle when enabled (#21844)
This commit is contained in:
@@ -132,6 +132,7 @@ export class CheckboxSelectColumn<T extends Slick.SlickData> implements Slick.Pl
|
|||||||
|
|
||||||
private toggleCellCheckbox(row: number): void {
|
private toggleCellCheckbox(row: number): void {
|
||||||
const currentValue = this.getCheckboxPropertyValue(row);
|
const currentValue = this.getCheckboxPropertyValue(row);
|
||||||
|
if (currentValue.enabled) {
|
||||||
this.setCheckboxPropertyValue(row, !currentValue.checked);
|
this.setCheckboxPropertyValue(row, !currentValue.checked);
|
||||||
this._grid.invalidateRow(row);
|
this._grid.invalidateRow(row);
|
||||||
this._grid.render();
|
this._grid.render();
|
||||||
@@ -139,6 +140,7 @@ export class CheckboxSelectColumn<T extends Slick.SlickData> implements Slick.Pl
|
|||||||
this.updateSelectAllCheckboxState();
|
this.updateSelectAllCheckboxState();
|
||||||
this._onChange.fire({ checked: !currentValue.checked, row: row, column: this.index });
|
this._onChange.fire({ checked: !currentValue.checked, row: row, column: this.index });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private handleHeaderClick(e: Event, args?: Slick.OnHeaderClickEventArgs<T>): void {
|
private handleHeaderClick(e: Event, args?: Slick.OnHeaderClickEventArgs<T>): void {
|
||||||
this.onHeaderCheckboxStateChange();
|
this.onHeaderCheckboxStateChange();
|
||||||
|
|||||||
Reference in New Issue
Block a user