Use null instead of empty string

In legacy edge, empty string resets the URL's hash
This commit is contained in:
Thomas Weber committed 2021-04-09 16:44:35 -05:00
1 parent 968358ca7f
commit 3c3385ee34
1 file changed
+2 -2
+2 -2
View File
@@ -38,8 +38,8 @@ class Modal extends React.Component {
return `modal-${this.props.id}`;
}
pushHistory (state, push) {
if (push) return history.pushState(state, this.id, '');
history.replaceState(state, this.id, '');
if (push) return history.pushState(state, this.id, null);
history.replaceState(state, this.id, null);
}
render () {
return <ModalComponent {...this.props} />;