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) {