remove table setActive (#10256)

* remove setActive method

* another place
This commit is contained in:
Alan Ren
2020-05-05 13:21:26 -07:00
committed by GitHub
parent 921e546fd7
commit 0fd3b25ccd
3 changed files with 3 additions and 7 deletions

View File

@@ -230,10 +230,6 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
this._grid.setActiveCell(row, cell);
}
setActive(): void {
this._grid.setActiveCell(0, 1);
}
get activeCell(): Slick.Cell | null {
return this._grid.getActiveCell();
}

View File

@@ -453,7 +453,7 @@ export class EditDataGridPanel extends GridParentComponent {
private setActive() {
if (this.firstRender && this.table) {
this.table.setActive();
this.table.setActiveCell(0, 1);
this.firstRender = false;
}
}

View File

@@ -415,7 +415,7 @@ export abstract class GridParentComponent extends Disposable {
return (gridIndex: number) => {
self.activeGrid = gridIndex;
let grid = self.table;
grid.setActive();
grid.setActiveCell(0, 1);
grid.setSelectedRows(true);
};
}
@@ -438,7 +438,7 @@ export abstract class GridParentComponent extends Disposable {
}
setTimeout(() => {
self.resizeGrids();
self.table.setActive();
self.table.setActiveCell(0, 1);
});
}