diff --git a/src/components/ThreadEnvelope.vue b/src/components/ThreadEnvelope.vue index 37052e698c..246fcb4738 100644 --- a/src/components/ThreadEnvelope.vue +++ b/src/components/ThreadEnvelope.vue @@ -735,19 +735,13 @@ export default { }, scrollToThread(threadId) { this.$nextTick(() => { - const threadElement = document.querySelector(`[data-thread-id="${threadId}"]`) - if (threadElement) { - threadElement.scrollIntoView({ behavior: 'smooth', block: 'top' }) - } + window.scrollTo({ top: 0, behavior: 'smooth' }) }) }, scrollToEnvelope() { this.$nextTick(() => { - const envelopeElement = this.$refs.envelope - if (envelopeElement) { - envelopeElement.scrollIntoView({ behavior: 'smooth', block: 'top' }) - } + window.scrollTo({ top: 0, behavior: 'smooth' }) }) }, async fetchItineraries() {