Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng2-pdfjs-viewer doesn't work in Ion-Modal ng-template #267

Open
connectMyClub opened this issue Mar 13, 2025 · 0 comments
Open

ng2-pdfjs-viewer doesn't work in Ion-Modal ng-template #267

connectMyClub opened this issue Mar 13, 2025 · 0 comments

Comments

@connectMyClub
Copy link

connectMyClub commented Mar 13, 2025

ng2-pdfjs-viewer doesn't work in Ion-Modal ng-template appears as a grey empty frame. I've tested outside of a modal and the pdf loads as expected.

<ion-modal [isOpen]="isPdfModalOpen" (willDismiss)="onWillDismiss($event)">
    <ng-template>
      <ion-header >
        <ion-toolbar>
          <ion-buttons slot="start">
            <ion-button (click)="cancel()">Close</ion-button>
          </ion-buttons>
        </ion-toolbar>
      </ion-header>
      <ion-content class="ion-padding ion-text-center">
        <ng2-pdfjs-viewer
            [pdfSrc]="pdfSrc"
            zoom="auto"
            pagemode="thumbs"
          >
      </ng2-pdfjs-viewer>
      </ion-content>
    </ng-template>
  </ion-modal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant