diff --git a/projects/core/components/dialog/dialog.component.ts b/projects/core/components/dialog/dialog.component.ts index bb6b6e277f43..94d6d1215fc7 100644 --- a/projects/core/components/dialog/dialog.component.ts +++ b/projects/core/components/dialog/dialog.component.ts @@ -22,7 +22,7 @@ import { import {TuiDialogSize} from '@taiga-ui/core/types'; import {POLYMORPHEUS_CONTEXT, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {isObservable, merge, Observable, of, Subject} from 'rxjs'; -import {filter, map, share, switchMap, takeUntil} from 'rxjs/operators'; +import {filter, map, switchMap, takeUntil} from 'rxjs/operators'; import {TUI_DIALOGS_CLOSE} from './dialog.tokens'; import {TuiDialogCloseService} from './dialog-close.service'; @@ -64,7 +64,7 @@ export class TuiDialogComponent { } as const; readonly close$ = new Subject(); - readonly closeable$ = toObservable(this.context.closeable).pipe(share()); + readonly closeable$ = toObservable(this.context.closeable); constructor( @Inject(TUI_ANIMATIONS_DURATION) private readonly duration: number,