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

Content NgTemplate disappears after @angular/ssr hydration #304

Open
jwittekind opened this issue Feb 24, 2024 · 0 comments
Open

Content NgTemplate disappears after @angular/ssr hydration #304

jwittekind opened this issue Feb 24, 2024 · 0 comments

Comments

@jwittekind
Copy link

jwittekind commented Feb 24, 2024

As soon as my angular app gets hydrated, my ng-content inside the ngxFileDrop disappears without any noticeable reason.

This is my implementation:

<ngx-file-drop
  [multiple]="!!multiple"
  [accept]="conf.acceptFiles || ''"
  dropZoneClassName="ngx-file-drop"
  browseBtnClassName="ngx-file-drop-btn"
  contentClassName="ngx-file-drop-content"
  (onFileLeave)="dragFileOverEnd()"
  (onFileOver)="dragFileOverStart()"
  (onFileDrop)="dragFileAccepted($event)"
>
  <ng-template ngx-file-drop-content-tmp>
    <ng-content />
  </ng-template>
</ngx-file-drop>

Using ngxFileDrop 16.0.0 and Angular 17.14

2024-02-24 13 49 55

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