Skip to content

Commit

Permalink
feat(core): ngx-floating onPush strategy (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-march authored Sep 10, 2024
1 parent 46926ec commit c8caad2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/lib/floating/floating.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
top: 0;
left: 0;
z-index: 999;
will-change: left, top;
}
4 changes: 3 additions & 1 deletion packages/core/src/lib/floating/floating.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
AfterViewInit,
booleanAttribute,
ChangeDetectionStrategy,
Component,
computed,
DoCheck,
Expand Down Expand Up @@ -41,7 +42,8 @@ import { isServer } from '../injections';
PlatformService
],
templateUrl: './floating.component.html',
styleUrl: './floating.component.scss'
styleUrl: './floating.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FloatingComponent implements AfterViewInit, OnChanges, DoCheck, OnDestroy {
readonly config = inject(NGX_FLOATING_CONFIG);
Expand Down

0 comments on commit c8caad2

Please sign in to comment.