-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Modal footer action triggers onClose callback #6818
Comments
|
I want a callback triggered by clicking the mask. Is there any way to achieve this? For example, I have a variable: when I open the modal and edit it, clicking the mask should roll back the changes, while clicking a footer action should save them |
Oh ~ Understand the need. However, the icon callback function may not be supported yet. You may need to temporarily |
Got it. Thanks for the support |
Version of antd-mobile
5.3.2
Operating system and its version
No response
Browser and its version
No response
Sandbox to reproduce
https://codesandbox.io/p/devbox/qg4ptg
What happened?
The documentation says onClose is a callback triggered by clicking the close icon (X) or the mask, but it is being triggered by footer actions
Relevant log output
The text was updated successfully, but these errors were encountered: