Skip to content

Commit 56d3dff

Browse files
authored
Merge pull request #4482 from Abhishekzod007/patch-fullscreenmodal-dualscrollbar
Fix dual scrollbars when using FullscreenModal
2 parents 550a09b + b0a0e44 commit 56d3dff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contentcuration/contentcuration/frontend/shared/views/FullscreenModal.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@
100100
this.hideHTMLScroll(!!val);
101101
},
102102
},
103-
beforeDestroy() {
103+
activated() {
104+
this.hideHTMLScroll(true);
105+
},
106+
deactivated() {
104107
this.hideHTMLScroll(false); // Ensure scroll is restored when the component is destroyed
105108
},
106109
mounted() {
107-
this.hideHTMLScroll(true);
108110
this.$refs.dialog.initDetach();
109111
},
110112
methods: {

0 commit comments

Comments
 (0)