segmentio / evergreen

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

Dialog onBeforeClose #1670

Closed iansummerlin closed 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

Documentation

netlify[bot] commented 8 months ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit 71f8cee630ffaa11321d11c02a8726bf87b514b7
Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/6552857b9b3f1000083cbd1a
Deploy Preview https://deploy-preview-1670--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.