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 b3e97ad commit 3f4e969Copy full SHA for 3f4e969
src/containers/modal.jsx
@@ -19,7 +19,7 @@ class Modal extends React.Component {
19
componentDidMount () {
20
// Add a history event only if it's not currently for our modal. This
21
// avoids polluting the history with many entries. We only need one.
22
- this.pushHistory(this.id, history.state === null);
+ this.pushHistory(this.id, (history.state === null || history.state !== this.id));
23
}
24
componentWillUnmount () {
25
this.removeEventListeners();
0 commit comments