-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add an event for when the user clicks on the overlay/mask of a dialog #419
Comments
maskClosable 不够用吗?现在 useDialog 是不是支持了 maskClosable?有别的库有相关的属性吗? |
@wc-matteo Isn't maskClosable enough? |
no. The issue here is that there is no event for when the user closes the dialog by clicking on the mask/overlay. So you have no way to know. |
@07akioni I saw that both antd and iview are binding the mask click event to the onCancel event, other frame not support. |
In which scene you need to know this? |
let's say there is a dialog with a confirmation. The user can confirm or he can cancel/close the dialog. If he closes the dialog by clicking on the mask/overlay, I have no way to react to that |
This function solves the problem (这个功能解决的问题)
the ability to do something when the user closes the dialog that way
Expected API (期望的 API)
I'd use onClose for that as well, since technically it's a way to close the dialog
The text was updated successfully, but these errors were encountered: