Use only one way to go back
This commit is contained in:
parent
04c4e03ac1
commit
985a7fb670
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ import '../../assets/css/scrollstyles.scss';
|
|||
if (!self.closedByBack && isHistoryEnabled(dlg)) {
|
||||
const state = window.history.state || {};
|
||||
if (state.dialogId === hash) {
|
||||
window.history.back();
|
||||
appRouter.back();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ import '../../assets/css/scrollstyles.scss';
|
|||
export function close(dlg) {
|
||||
if (isOpened(dlg)) {
|
||||
if (isHistoryEnabled(dlg)) {
|
||||
window.history.back();
|
||||
appRouter.back();
|
||||
} else {
|
||||
closeDialog(dlg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue