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: '',