diff --git a/src/runtime/composables/useOverlay.ts b/src/runtime/composables/useOverlay.ts index 9e81ed31..305b6066 100644 --- a/src/runtime/composables/useOverlay.ts +++ b/src/runtime/composables/useOverlay.ts @@ -71,7 +71,7 @@ function _useOverlay() { isMounted: !!defaultOpen, destroyOnClose: !!destroyOnClose, originalProps: props || {}, - props: { ...(props || {}) } + props: { ...props } }) overlays.push(options) @@ -135,7 +135,7 @@ function _useOverlay() { const patch = (id: symbol, props: Partial>): void => { const overlay = getOverlay(id) - overlay.props = { ...props } + overlay.props = { ...overlay.props, ...props } } const getOverlay = (id: symbol): Overlay => {