Skip to content
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

[Popup] 增加 closeOnBack 属性,支持用户手势后退时关闭弹窗,而非退出页面 #6436

Open
guoyunhe opened this issue Nov 17, 2023 · 0 comments · May be fixed by #6438
Open
Labels

Comments

@guoyunhe
Copy link
Contributor

Version of antd-mobile

5.33.0

What is this feature about?

目前有很多用户已经习惯了手势左滑后退来关闭一些 Popup,比如 Android 版微信的这个 Popup,是可以用手势左滑(后退)关闭的。

image

而 Ant Design Mobile 的 Popup 目前并不支持在检测到后退事件(popstate)时关闭。

建议 Popup 增加此属性,并应用到所有依赖 Popup 的子组件,如 Dialog,Modal,Picker,ActionSheet 等。

// 检测到后退事件时关闭弹窗,而非退回到上一页,默认为 false
closeOnBack: boolean;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant