diff --git a/packages/survey-angular-ui/src/base-angular.ts b/packages/survey-angular-ui/src/base-angular.ts index a8fd016159..ef4f430810 100644 --- a/packages/survey-angular-ui/src/base-angular.ts +++ b/packages/survey-angular-ui/src/base-angular.ts @@ -68,6 +68,7 @@ export abstract class BaseAngular extends EmbeddedViewCon this.update(key); } }; + stateElement.enableOnElementRenderedEvent(); } } private unMakeBaseElementAngular(stateElement?: Base) { @@ -82,6 +83,7 @@ export abstract class BaseAngular extends EmbeddedViewCon val["onArrayChanged"] = () => { }; } }); + stateElement.disableOnElementRenderedEvent(); } } @@ -109,6 +111,9 @@ export abstract class BaseAngular extends EmbeddedViewCon } protected detectChanges() { this.getChangeDetectorRef().detectChanges(); + if(this.getModel()) { + this.getModel().afterRerender(); + } } protected getShouldReattachChangeDetector(): boolean { diff --git a/packages/survey-angular-ui/src/questions/ranking.component.html b/packages/survey-angular-ui/src/questions/ranking.component.html index b55d20790e..8a367d7299 100644 --- a/packages/survey-angular-ui/src/questions/ranking.component.html +++ b/packages/survey-angular-ui/src/questions/ranking.component.html @@ -1,25 +1,25 @@
- +
- + -
+
- + -
+
\ No newline at end of file diff --git a/packages/survey-vue3-ui/src/MatrixDropdownCellComp.vue b/packages/survey-vue3-ui/src/MatrixDropdownCellComp.vue index e641e1a0eb..f7c6b81d87 100644 --- a/packages/survey-vue3-ui/src/MatrixDropdownCellComp.vue +++ b/packages/survey-vue3-ui/src/MatrixDropdownCellComp.vue @@ -107,16 +107,18 @@ const getCellStyle = () => { return null; }; const getCellIndex = () => (props.cell as any).index || ""; -const onVisibilityChanged = () => - (isVisible.value = props.cell.question.isVisible); +const onVisibilityChanged = () => { + if (!props.cell.hasQuestion || !props.question || !props.question.survey) + return; + isVisible.value = props.cell.question.isVisible; +}; const getComponentName = (element: Question | any) => { return getComponent(element); }; - +onVisibilityChanged(); onMounted(() => { if (!props.cell.hasQuestion || !props.question || !props.question.survey) return; - onVisibilityChanged(); props.cell.question.registerPropertyChangedHandlers(["isVisible"], () => { onVisibilityChanged(); }); diff --git a/packages/survey-vue3-ui/src/Question.vue b/packages/survey-vue3-ui/src/Question.vue index bc30af82c4..cc2ea9649e 100644 --- a/packages/survey-vue3-ui/src/Question.vue +++ b/packages/survey-vue3-ui/src/Question.vue @@ -30,7 +30,7 @@