-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(migration): improve useOverlay
section
#3601
Conversation
Hi, I have faced the $emit('closed') or emit('closed') not working, I just check with the close word only, It will work Thanks
@genu Does this seem correct to you? |
commit: |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overlays can no longer be closed using...
This is correct
... either when a
closed
event is fired explicitly...
You're right, this should be close
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,
Thank you @genu
@@ -496,7 +496,7 @@ const count = ref(0) | |||
</script> | |||
``` | |||
|
|||
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whenever the modal is closed
This is correct, lets keep this.
now done through the
closed
event
You're right here, should be close
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @genu
useOverlay
section
Thanks! |
Hi team,
I encountered an issue where
$emit('closed')
oremit('closed')
was not working. However, when I used onlyclose
, it worked as expected.Could you please help clarify this behaviour?
🔗 Linked issue
❓ Type of change
📚 Description
📝 Checklist