From 2c68f95ff3938d06c49007ba1e929d7e9f19b82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 21 Jul 2018 01:25:55 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=82=AF=E3=82=B5?= =?UTF-8?q?=E3=83=BC=E3=82=92=E5=BF=98=E3=82=8C=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/desktop/views/components/post-form.vue | 2 +- src/client/app/mobile/views/components/post-form.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index ecb703818..343328434 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -186,7 +186,7 @@ export default Vue.extend({ this.$nextTick(() => this.watch()); const hashtags = [...document.getElementsByClassName('hashtag')]; - const hashtagsContainer = hashtags.parentElement; + const hashtagsContainer = hashtags[0].parentElement; let offsetX = 0 const update = () => { if (hashtags[0].getBoundingClientRect().right <= hashtagsContainer.getBoundingClientRect().left) { diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index d728eb15e..62ec54a09 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -167,7 +167,7 @@ export default Vue.extend({ }); const hashtags = [...document.getElementsByClassName('hashtag')]; - const hashtagsContainer = hashtags.parentElement; + const hashtagsContainer = hashtags[0].parentElement; let offsetX = 0 const update = () => { if (hashtags[0].getBoundingClientRect().right <= hashtagsContainer.getBoundingClientRect().left) {