diff --git a/src/framework/theme/components/cdk/adapter/adapter.module.ts b/src/framework/theme/components/cdk/adapter/adapter.module.ts index ffd41d14d4..bd3ed47502 100644 --- a/src/framework/theme/components/cdk/adapter/adapter.module.ts +++ b/src/framework/theme/components/cdk/adapter/adapter.module.ts @@ -17,10 +17,12 @@ export class NbCdkAdapterModule { NbViewportRulerAdapter, NbOverlayContainerAdapter, NbBlockScrollStrategyAdapter, + NbScrollDispatcherAdapter, + NbScrollStrategyOptions, { provide: OverlayContainer, useExisting: NbOverlayContainerAdapter }, { provide: NbOverlayContainer, useExisting: NbOverlayContainerAdapter }, - { provide: ScrollDispatcher, useClass: NbScrollDispatcherAdapter }, - { provide: ScrollStrategyOptions, useClass: NbScrollStrategyOptions }, + { provide: ScrollDispatcher, useExisting: NbScrollDispatcherAdapter }, + { provide: ScrollStrategyOptions, useExisting: NbScrollStrategyOptions }, ], }; }