From 6448b447b3261ffa3f43c4a39d7644eeb349890c Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Fri, 22 Nov 2019 13:06:04 +0100 Subject: [PATCH] Resolved a React warning. Removed the widget update due to an incorrect manual merge. Signed-off-by: Akos Kitta --- .../components/component-list/filterable-list-container.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arduino-ide-extension/src/browser/components/component-list/filterable-list-container.tsx b/arduino-ide-extension/src/browser/components/component-list/filterable-list-container.tsx index 2500a60b..8493de1e 100644 --- a/arduino-ide-extension/src/browser/components/component-list/filterable-list-container.tsx +++ b/arduino-ide-extension/src/browser/components/component-list/filterable-list-container.tsx @@ -20,7 +20,7 @@ export class FilterableListContainer extends React.C }; } - componentWillMount(): void { + componentDidMount(): void { this.search = debounce(this.search, 500); this.handleFilterTextChange(''); this.props.filterTextChangeEvent(this.handleFilterTextChange.bind(this)); @@ -33,7 +33,6 @@ export class FilterableListContainer extends React.C } render(): React.ReactNode { - this.props.container.update(); // This will recalculate the desired dimension of the scroll-bar thumb. (See: arduino/arduino-pro-ide#101) return
{this.renderSearchFilter()} {this.renderSearchBar()}