diff --git a/apps/frontend/src/components/create/CreateSection.vue b/apps/frontend/src/components/create/CreateSection.vue index 4a1dda0..3338fd4 100644 --- a/apps/frontend/src/components/create/CreateSection.vue +++ b/apps/frontend/src/components/create/CreateSection.vue @@ -16,12 +16,14 @@ watch( () => sectionRef.value && props.isNextActiveSection, (isNextActiveSection) => { if (isNextActiveSection) { + sectionRef.value?.scrollIntoView({ behavior: 'smooth', block: 'center' }) + const input = sectionRef.value?.querySelector('input[type="text"]') if (input instanceof HTMLInputElement) { - input.focus() + setTimeout(() => { + input.focus() + }, 200) } - - sectionRef.value?.scrollIntoView({ behavior: 'smooth' }) } }, { immediate: true }, diff --git a/apps/frontend/src/components/manage/QRCodeCard.vue b/apps/frontend/src/components/manage/QRCodeCard.vue index dbf8251..4d821f5 100644 --- a/apps/frontend/src/components/manage/QRCodeCard.vue +++ b/apps/frontend/src/components/manage/QRCodeCard.vue @@ -12,7 +12,9 @@ -