Skip to content

Commit

Permalink
Replace unobserve with disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Oct 9, 2022
1 parent 5d99cec commit d169d72
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,8 @@ class Row extends React.PureComponent {
}

componentWillUnmount() {
const element = this.containerRef.current;
if (element) {
this.observerEnabler.unobserve(element);
this.observerDisabler.unobserve(element);
}
this.observerEnabler.disconnect();
this.observerDisabler.disconnect();
}

handleChangeFocus(nextFocus) {
Expand Down

0 comments on commit d169d72

Please sign in to comment.