We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
defaultOpen
1 parent 4873b3a commit 66355baCopy full SHA for 66355ba
src/runtime/composables/useOverlay.ts
@@ -46,7 +46,7 @@ function _useOverlay() {
46
isMounted: !!defaultOpen,
47
destroyOnClose: !!destroyOnClose,
48
originalProps: props || {},
49
- props: {}
+ props: { ...(props || {}) }
50
})
51
52
overlays.push(options)
@@ -110,9 +110,7 @@ function _useOverlay() {
110
const patch = <T extends Component>(id: symbol, props: Partial<ComponentProps<T>>): void => {
111
const overlay = getOverlay(id)
112
113
- Object.entries(props!).forEach(([key, value]) => {
114
- (overlay.props as any)[key] = value
115
- })
+ overlay.props = { ...props }
116
}
117
118
const getOverlay = (id: symbol): Overlay => {
0 commit comments