소스 검색

fix: add detectChanges for QR modal display

gangvy 5 달 전
부모
커밋
5055fec657
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/app/app.ts

+ 1 - 0
src/app/app.ts

@@ -396,6 +396,7 @@ export class App implements OnInit {
       // 4. Show QR modal
       this.showQrModal = true;
       this.paySuccess = false;
+      this.cdr.detectChanges();
 
       // Wait for DOM update, then render QR
       setTimeout(() => this.renderQR(codeUrl), 100);