evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

issue 1649: dialog onBeforeClose

Open iansummerlin opened this issue 2 years ago • 1 comments

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

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

iansummerlin avatar Nov 13 '23 20:11 iansummerlin

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.

netlify[bot] avatar Nov 13 '23 20:11 netlify[bot]