There was an error while loading. Please reload this page.
patch
open
1 parent d8160ba commit 5ad7dabCopy full SHA for 5ad7dab
src/runtime/composables/useOverlay.ts
@@ -87,11 +87,11 @@ function _useOverlay() {
87
const open = <T extends Component>(id: symbol, props?: ComponentProps<T>): OpenedOverlay<T> => {
88
const overlay = getOverlay(id)
89
90
- // If props are provided, update the overlay's props
+ // If props are provided, merge them with the original props, otherwise use the original props
91
if (props) {
92
- patch(overlay.id, props)
+ overlay.props = { ...overlay.originalProps, ...props }
93
} else {
94
- patch(overlay.id, overlay.originalProps)
+ overlay.props = { ...overlay.originalProps }
95
}
96
97
overlay.isOpen = true
0 commit comments