We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33b926 commit 85e1b00Copy full SHA for 85e1b00
packages/Notification/Notification.jsx
@@ -74,14 +74,12 @@ class Notification extends React.Component {
74
75
componentDidMount() {
76
if (this.props.dismissible) {
77
- this.adjustContentHeight()
+ window.addEventListener('resize', this.adjustContentHeight)
78
}
79
80
81
- componentDidUpdate() {
82
- if (this.props.dismissible) {
83
84
- }
+ componentWillUnmount() {
+ window.removeEventListener('resize', this.adjustContentHeight)
85
86
87
adjustContentHeight = () => {
0 commit comments