Skip to content

Commit f5bffaf

Browse files
committed
fix(dialogs/spawnDialog): actually mount dialog to the provided container
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
1 parent da0fc68 commit f5bffaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/functions/dialog/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export function spawnDialog(
6060

6161
const app = createApp(dialog, {
6262
...props,
63-
container,
63+
// If dialog has no `container` prop passing a falsy value does nothing
64+
// Otherwise it is expected that `null` disables teleport and mounts dialog in place like NcDialog/NcModal
65+
container: null,
6466
onClose: (...rest: unknown[]) => {
6567
onClose(...rest.map(v => toRaw(v)))
6668
app.unmount()

0 commit comments

Comments
 (0)