mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-03 19:19:42 -04:00
Fixed execution of RxJS teardown logic on complete (7.2.3 regression)
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
||||
of
|
||||
} from "rxjs"
|
||||
import {
|
||||
finalize,
|
||||
delay,
|
||||
map,
|
||||
observeOn,
|
||||
@@ -131,7 +132,8 @@ export function mountDialog(
|
||||
/* Create and return component */
|
||||
return watchDialog(el, options)
|
||||
.pipe(
|
||||
tap(internal$),
|
||||
tap(state => internal$.next(state)),
|
||||
finalize(() => internal$.complete()),
|
||||
map(state => ({ ref: el, ...state }))
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user