From a6aee5cbccc628314479a75450687ed10104ddff Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 09:47:20 +0300 Subject: [PATCH] =?UTF-8?q?fix=20[P-235]:=20=D0=A1=D0=BA=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D0=BB=20=D0=BF=D1=80=D0=B8=20=D1=82=D0=B0=D0=B1=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/vote/VoteConstructor.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 5878acb0f..9742b7e35 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -313,6 +313,21 @@ export default { setup(props, { emit }) { const step = ref(0); const isVoteCreated = ref(false); + + // Добавляем наблюдение за изменением шага + watch(step, () => { + // Прокручиваем основной скролл страницы + window.scrollTo({ top: 0, behavior: 'smooth' }); + + // Находим все контейнеры с overflow-y: auto и прокручиваем их наверх + setTimeout(() => { + const scrollContainers = document.querySelectorAll('.v-card-text[style*="overflow-y: auto"]'); + scrollContainers.forEach(container => { + container.scrollTo({ top: 0, behavior: 'smooth' }); + }); + }, 100); + }); + const form = ref({ title: '', description: '',