Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene
3f160eee46 fixed duplicate multiline-paste prompts 2024-03-01 20:33:20 +01:00
3 changed files with 2 additions and 2 deletions

View File

@@ -226,7 +226,6 @@ export abstract class BaseTabComponent extends BaseComponent {
this.destroyed.next()
}
this.destroyed.complete()
this.hostView.destroy()
}
/** @hidden */

View File

@@ -767,10 +767,10 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}
destroy (): void {
super.destroy()
for (const x of this.getAllTabs()) {
x.destroy()
}
super.destroy()
}
layout (): void {

View File

@@ -37,6 +37,7 @@ export class TabsService {
const componentRef = componentFactory.create(this.injector)
const tab = componentRef.instance
tab.hostView = componentRef.hostView
tab.destroyed$.subscribe(() => componentRef.destroy())
Object.assign(tab, params.inputs ?? {})
return tab
}