mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
feat: Reset wizard state upon successful redirection
This commit is contained in:
@@ -265,6 +265,7 @@ const handleWizardRedirect = (payload) => {
|
||||
modal.hidden = true;
|
||||
delete modal.dataset.open;
|
||||
document.body.classList.remove("modal-open");
|
||||
resetWizardToInitial();
|
||||
dispatchWizardEvent(modal, "done", { redirectUrl: payload.redirect_url });
|
||||
if (payload.redirect_url) {
|
||||
window.location.assign(payload.redirect_url);
|
||||
|
||||
Reference in New Issue
Block a user