Skip to content

Commit

Permalink
Fix invalid call to resizeObserver (#305)
Browse files Browse the repository at this point in the history
Looks like a failed copy/paste of mutationObserver
  • Loading branch information
Max authored and afc163 committed Jan 30, 2020
1 parent 51f9e15 commit b02a286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DOMWrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class DOMWrap extends React.Component<DOMWrapProps, DOMWrapState> {
this.resizeObserver.disconnect();
}
if (this.mutationObserver) {
this.resizeObserver.disconnect();
this.mutationObserver.disconnect();
}
}

Expand Down

0 comments on commit b02a286

Please sign in to comment.