-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
浏览器执行回退操作后PreviewImage不消失 #4069
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
感觉是不是在didHide或者willUnmount上增加一个关闭previewImage的方法? |
@yuche 这应该算这一个bug吧 |
和react的Portals一样的吧, 这种只能想办法在监听路由变化的时候关闭, 或者暴露出一个方法来关闭 |
页面回退关闭遮罩层,已经修复
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
在H5 platform上,调用Taro.previewImage后,如果执行回退(go back)操作,包含图片的遮罩层依然不会消失,而页面被回退了。正常的来说,执行go back的时候,只是关闭遮罩层而已,页面不会回退。
复现步骤
[复现问题的步骤]
期望行为
包含图片的遮罩层被关闭,而页面不会被回退。
报错信息
行为错误,无报错。
系统信息
补充信息
无
The text was updated successfully, but these errors were encountered: