Skip to content

Commit

Permalink
twosigma#7515 fix widget is not attached error in TableDisplay.destroy (
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed Jun 12, 2018
1 parent fe75cc7 commit 4520316
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion js/notebook/src/tableDisplay/dataGrid/BeakerXDataGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export class BeakerXDataGrid extends DataGrid {
this.highlighterManager.destroy();
this.dataGridResize.destroy();
this.rowManager.destroy();
this.dispose();

Signal.disconnectAll(this);

Expand Down
18 changes: 7 additions & 11 deletions js/notebook/src/tableDisplay/dataGrid/column/ColumnFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,13 @@ export default class ColumnFilter {
}

destroy(): void {
this.filterWidget.dispose();

setTimeout(() => {
this.dataGrid = null;
this.column = null;
this.filterWidget = null;
this.filterNode = null;
this.filterIcon = null;
this.clearIcon = null;
this.filterInput = null;
});
this.dataGrid = null;
this.column = null;
this.filterWidget = null;
this.filterNode = null;
this.filterIcon = null;
this.clearIcon = null;
this.filterInput = null;
}

private updateInputPosition() {
Expand Down

0 comments on commit 4520316

Please sign in to comment.