From cb52ebe65b5c6b8311a263cde0fadc3dfe49750e Mon Sep 17 00:00:00 2001 From: "Acid Chicken (硫酸鶏)" Date: Sat, 21 Jul 2018 01:25:55 +0900 Subject: インデクサーを忘れていた 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(-) (limited to 'src') diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index ecb703818a..3433284342 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 d728eb15ea..62ec54a093 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) { -- cgit v1.2.3-freya