From 776f0ef77491ac06de4a0035d2c4d387d9564948 Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 17 Oct 2019 15:43:59 -0400 Subject: [PATCH] lock body scroll when post status modal is open --- src/components/post_status_modal/post_status_modal.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/post_status_modal/post_status_modal.vue b/src/components/post_status_modal/post_status_modal.vue index d3a82389..b5e75de7 100644 --- a/src/components/post_status_modal/post_status_modal.vue +++ b/src/components/post_status_modal/post_status_modal.vue @@ -2,6 +2,7 @@
@@ -28,6 +29,10 @@ .post-form-modal-view { align-items: flex-start; + + body:not(.scroll-locked) & { + display: none; + } } .post-form-modal-panel {