From a1aeabccffbd2a64c5a6888c5cbb5a8a644c7e7d Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 20 Mar 2025 18:38:38 +0200 Subject: [PATCH] fix scroll --- app/javascript/submission_form/form.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue index 2e45f67d..e76ed805 100644 --- a/app/javascript/submission_form/form.vue +++ b/app/javascript/submission_form/form.vue @@ -1301,7 +1301,9 @@ export default { if (!this.isCompleted) { if (scrollToArea) { - this.scrollIntoField(this.currentField) + this.$nextTick(() => { + setTimeout(() => this.scrollIntoField(this.currentField), 1) + }) } this.enableScrollIntoField = false