refactor: add overflow reset logic in onboarding modal to enhance user experience during component destruction
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}">
|
||||
|
||||
Reference in New Issue
Block a user