segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.36k stars 833 forks source link

issue 1649: dialog onBeforeClose #1671

Open iansummerlin opened 8 months ago

iansummerlin commented 8 months ago

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

netlify[bot] commented 8 months ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit 0e882d44fb9e6c9438bf825270967d3799401938
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.