ngx-file-drop icon indicating copy to clipboard operation
ngx-file-drop copied to clipboard

Content NgTemplate disappears after @angular/ssr hydration

Open jwittekind opened this issue 1 year ago • 0 comments

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

jwittekind avatar Feb 24 '24 12:02 jwittekind