#556 Added try/catch to ignore errors if resize listener fails.
This commit is contained in:
parent
398d3b0363
commit
b92b716b2b
File diff suppressed because it is too large
Load Diff
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue