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

[Bug Report] van-dialog 组件模式show异常,可以显示但不能关闭 #5718

Closed
zj2050 opened this issue Feb 18, 2024 · 3 comments
Closed

Comments

@zj2050
Copy link

zj2050 commented Feb 18, 2024

重现链接

本操作必须获得您的授权,获取微信昵称信息,请确认
 onPopCancel() {
      this.setData({
           isLoginPopup: false
      })
 },

定义了一个 van-dialog 组件,首次使用,可以显示,但onPopCancel事件设置 isLoginPopup 为false,dialog 不隐藏
跟踪能进入事件,且 isLoginPopup 为false

Vant Weapp 版本

1.11.3

描述一下你遇到的问题。

本操作必须获得您的授权,获取微信昵称信息,请确认
 onPopCancel() {
      this.setData({
           isLoginPopup: false
      })
 },

定义了一个 van-dialog 组件,首次使用,可以显示,但onPopCancel事件设置 isLoginPopup 为false,dialog 不隐藏
跟踪能进入事件,且 isLoginPopup 为false

重现步骤

必须是清空状态下,单页确认后,关闭无效
Uploading 1706249916.0882.png…

设备/浏览器

模拟器、ios、android都一样

@johnsonwong666
Copy link
Collaborator

没有很理解是什么问题 https://developers.weixin.qq.com/s/NwHGjamA7bM4 
这个小程序代码片段修改一下,修改成你的情况然后重新分享一下过来看一下


@johnsonwong666
Copy link
Collaborator

@zj2050

@johnsonwong666
Copy link
Collaborator

1.11.3 版本有bug。升级一下版本可以解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants