diff options
| author | taehoon <th.dev91@gmail.com> | 2019-10-17 15:43:59 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-10-17 15:43:59 -0400 |
| commit | 776f0ef77491ac06de4a0035d2c4d387d9564948 (patch) | |
| tree | fd11823e7463630a67d112458181a9812b3b0e35 /src/components/post_status_modal | |
| parent | 051e6ea5ca8be5231d66e577a7e5407b53e08f61 (diff) | |
lock body scroll when post status modal is open
Diffstat (limited to 'src/components/post_status_modal')
| -rw-r--r-- | src/components/post_status_modal/post_status_modal.vue | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ <div v-if="isLoggedIn && !resettingForm" v-show="modalActivated" + v-body-scroll-lock="modalActivated" class="post-form-modal-view modal-view" @click="closeModal" > @@ -28,6 +29,10 @@ .post-form-modal-view { align-items: flex-start; + + body:not(.scroll-locked) & { + display: none; + } } .post-form-modal-panel { |
