We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da0fc68 commit f5bffafCopy full SHA for f5bffaf
src/functions/dialog/index.ts
@@ -60,7 +60,9 @@ export function spawnDialog(
60
61
const app = createApp(dialog, {
62
...props,
63
- container,
+ // 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,
66
onClose: (...rest: unknown[]) => {
67
onClose(...rest.map(v => toRaw(v)))
68
app.unmount()
0 commit comments