Use null instead of empty string
In legacy edge, empty string resets the URL's hash
This commit is contained in:
1 file changed
+2
-2
@@ -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} />;
|
||||
|
||||
Reference in new issue
Block a user