diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index 9f24973a3..5c32b298c 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -49,7 +49,7 @@ export default { customDropdownId: String, }, setup(props) { - const dropdownId = !props.customInputId + const dropdownId = !props.customDropdownId ? `dropdown-${crypto.randomUUID()}` : props.customDropdownId; diff --git a/src/router/index.js b/src/router/index.js index 7f0a20b80..3abfa058d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -161,6 +161,11 @@ const routes = [ const router = createRouter({ history: createWebHistory("/fmg/"), routes, + //Cause "page" to begin at the top when route chanages. + scrollBehavior(to, from, savedPosition) { + // always scroll to top + return { top: 0 }; + }, }); //---------------------------------------------------------- Router Functions ----------------------------------------------------------