#556 Added try/catch to ignore errors if resize listener fails.

This commit is contained in:
Mikael Svenson 2018-11-29 13:18:13 +01:00
parent 398d3b0363
commit b92b716b2b
2 changed files with 11832 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,12 +33,17 @@ export default class SearchResultsTemplate extends React.Component<ISearchResult
}
public componentWillUnmount() {
this.resize.removeResizeListener(this.parentRef, this.onComponentResize);
try {
debugger;
this.resize.removeResizeListener(this.parentRef, this.onComponentResize);
} catch (error) {}
}
public componentDidMount() {
this._updateTemplate(this.props);
this.resize.addResizeListener(this.parentRef, this.onComponentResize);
try {
this.resize.addResizeListener(this.parentRef, this.onComponentResize);
} catch (error) {}
}
public componentDidUpdate() {