We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db41f07 + ec4598c commit 4ba3c8aCopy full SHA for 4ba3c8a
1 file changed
index.js
@@ -15,6 +15,7 @@ class NotificationAlert extends React.Component {
15
};
16
this.onDismiss = this.onDismiss.bind(this);
17
this.notificationAlert = this.notificationAlert.bind(this);
18
+ this.refNotification = React.createRef();
19
}
20
// to stop the warning of calling setState of unmounted component
21
componentWillUnmount() {
@@ -179,7 +180,7 @@ class NotificationAlert extends React.Component {
179
180
render() {
181
return React.createElement(
182
"div",
- { ref: "notifications" },
183
+ { ref: this.refNotification },
184
this.showAllNotifications("tl"),
185
this.showAllNotifications("tc"),
186
this.showAllNotifications("tr"),
0 commit comments