Skip to content

Commit

Permalink
disable view recycling; use reposition strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
willmartian committed Sep 28, 2023
1 parent 92c271d commit d231faa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</tr>
</ng-container>
<ng-template body let-rows$>
<ng-container *cdkVirtualFor="let item of rows$">
<ng-container *cdkVirtualFor="let item of rows$; templateCacheSize: 0">
<tr
*ngIf="item.collection"
bitRow
Expand Down
6 changes: 1 addition & 5 deletions libs/components/src/menu/menu-trigger-for.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ export class MenuTriggerForDirective implements OnDestroy {
panelClass: "bit-menu-panel",
hasBackdrop: true,
backdropClass: "cdk-overlay-transparent-backdrop",
/**
* `scrollStrategies.resposition` is not supported in virtual scroll viewports.
* @see https://bitwarden.atlassian.net/browse/CL-104
*/
scrollStrategy: this.overlay.scrollStrategies.block(),
scrollStrategy: this.overlay.scrollStrategies.reposition(),
positionStrategy: this.overlay
.position()
.flexibleConnectedTo(this.elementRef)
Expand Down

0 comments on commit d231faa

Please sign in to comment.