Skip to content

Commit

Permalink
[Popover] Fix resize event leak (#20272)
Browse files Browse the repository at this point in the history
  • Loading branch information
skmail authored Mar 25, 2020
1 parent 037785e commit a14df63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/Popover/Popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ const Popover = React.forwardRef(function Popover(props, ref) {
window.addEventListener('resize', handleResize);
return () => {
handleResize.clear();
window.removeEventListener('rezise', handleResize);
window.removeEventListener('resize', handleResize);
};
}, [open, setPositioningStyles]);

Expand Down

0 comments on commit a14df63

Please sign in to comment.