refactor: add overflow reset logic in onboarding modal to enhance user experience during component destruction

This commit is contained in:
2025-12-04 00:24:33 -05:00
parent c6fe0fca89
commit 6963ff6121

View File

@@ -17,6 +17,10 @@
document.documentElement.style.overflow = 'hidden';
}
},
destroy() {
// Ensure overflow is reset when component is destroyed
document.documentElement.style.overflow = '';
},
previous() {
if (this.loading) return;
this.loading = true;
@@ -38,6 +42,8 @@
finish() {
if (this.loading) return;
this.loading = true;
// Reset overflow before closing
document.documentElement.style.overflow = '';
@this.call('finish');
}
}">