diff --git a/packages/survey-vue3-ui/src/Page.vue b/packages/survey-vue3-ui/src/Page.vue index 4ed2058244..7f41e24520 100644 --- a/packages/survey-vue3-ui/src/Page.vue +++ b/packages/survey-vue3-ui/src/Page.vue @@ -33,18 +33,23 @@ const props = defineProps<{ const root = ref(null as any); -useBase(() => props.page); +const onAfterRender = () => { + if (props.survey && root.value) { + props.survey.afterRenderPage(root.value); + } +}; + +useBase( + () => props.page, + () => { + onAfterRender(); + } +); const showDescription = computed(() => { return props.page._showDescription; }); - onMounted(() => { - if (props.survey) { - props.survey.afterRenderPage(root.value); - } -}); -onUpdated(() => { - props.survey.afterRenderPage(root.value); + onAfterRender(); });