Skip to content

Commit

Permalink
Work for #7700: do no run delayed updates if object is disposed (#7713)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 authored Jan 22, 2024
1 parent 9f98fa2 commit 39855f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/survey-angular-ui/src/base-angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export abstract class BaseAngular<T extends Base = Base> extends EmbeddedViewCon
this.afterUpdate(true);
} else {
queueMicrotask(() => {
if (!this.isDestroyed) {
const model = this.getModel();
if (!this.isDestroyed && model && !model.isDisposed) {
this.setIsRendering(true);
this.detectChanges();
}
Expand Down

0 comments on commit 39855f3

Please sign in to comment.