@nova-ui/bits 15.0.5-5242 → 15.0.5-5245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19375,9 +19375,9 @@ class DialogComponent {
19375
19375
  this.renderer.addClass(this.document.body, "dialog-open");
19376
19376
  this.scrollableElement = new CdkScrollable(this.elRef, this.scrollDispatcher, this.ngZone);
19377
19377
  this.scrollDispatcher.register(this.scrollableElement);
19378
- this.router.events.pipe(take$1(1)).subscribe(() => {
19379
- this.dismiss("ROUTE_CHANGED");
19380
- });
19378
+ this.router.events
19379
+ .pipe(filter((e) => e instanceof NavigationEnd), take$1(1))
19380
+ .subscribe(() => this.dismiss("ROUTE_CHANGED"));
19381
19381
  }
19382
19382
  ngAfterViewInit() {
19383
19383
  if (!this.elRef.nativeElement.contains(document.activeElement)) {