Skip to content
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

issue 1649: dialog onBeforeClose #1671

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

iansummerlin
Copy link

@iansummerlin iansummerlin commented Nov 13, 2023

Overview
I needed the ability to handle overlay/close clicks in Dialog component in a personal project. I found the below issue

https://github.com/segmentio/evergreen/issues/1649

Implemented in the same way as component SideSheet by passing the function callback to the Overlay as a prop.

Thanks

Screenshots (if applicable)

image

confirmation is used here as an example

Documentation

  • Updated Typescript types and/or component PropTypes
  • Added / modified component docs
  • Added / modified Storybook stories

Copy link

netlify bot commented Nov 13, 2023

Deploy Preview for evergreen-storybook ready!

Name Link
🔨 Latest commit 0e882d4
🔍 Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/655288837edbc20008f8cb2c
😎 Deploy Preview https://deploy-preview-1671--evergreen-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant