From c8ca604bdf179e48c0ddb92c29be47b9a34bc57b Mon Sep 17 00:00:00 2001 From: Rizwan <125858315+Rizwan-malek@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:34:22 +0530 Subject: [PATCH] docs(migration): improve `useOverlay` section (#3601) --- docs/content/1.getting-started/2.migration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/1.getting-started/2.migration.md b/docs/content/1.getting-started/2.migration.md index aa80b5c6..992c74ae 100644 --- a/docs/content/1.getting-started/2.migration.md +++ b/docs/content/1.getting-started/2.migration.md @@ -458,8 +458,8 @@ const toast = useToast() Some important differences: - The `useOverlay` composable is now used to create overlay instances - Overlays that are opened, can be awaited for their result -- Overlays can no longer be closed using `modal.close()` or `slideover.close()`, rather, they close automatically: either when a `closed` event is fired explicitly from the opened component OR when the overlay closes itself (clicking on backdrop, pressing the ESC key, etc) -- To capture the return value in the parent component you must explictly emit a `closed` event with the desired value +- Overlays can no longer be close using `modal.close()` or `slideover.close()`, rather, they close automatically: either when a `close` event is fired explicitly from the opened component OR when the overlay closes itself (clicking on backdrop, pressing the ESC key, etc) +- To capture the return value in the parent component you must explictly emit a `close` event with the desired value ```diff @@ -496,7 +496,7 @@ const count = ref(0) ``` -Closing a modal is now done through the `closed` event. The `modal.open` method now returns a promise that resolves to the result of the modal whenever the modal is closed: +Closing a modal is now done through the `close` event. The `modal.open` method now returns a promise that resolves to the result of the modal whenever the modal is close: ```diff