From 5ad7dabbdc5251567b55edc22290e0e6b864282f Mon Sep 17 00:00:00 2001 From: Eugen Istoc Date: Thu, 10 Jul 2025 04:45:55 -0400 Subject: [PATCH] fix(useOverlay): don't use `patch` when passing props to `open` (#4497) --- src/runtime/composables/useOverlay.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/composables/useOverlay.ts b/src/runtime/composables/useOverlay.ts index 305b6066..facdf371 100644 --- a/src/runtime/composables/useOverlay.ts +++ b/src/runtime/composables/useOverlay.ts @@ -87,11 +87,11 @@ function _useOverlay() { const open = (id: symbol, props?: ComponentProps): OpenedOverlay => { const overlay = getOverlay(id) - // If props are provided, update the overlay's props + // If props are provided, merge them with the original props, otherwise use the original props if (props) { - patch(overlay.id, props) + overlay.props = { ...overlay.originalProps, ...props } } else { - patch(overlay.id, overlay.originalProps) + overlay.props = { ...overlay.originalProps } } overlay.isOpen = true