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] PickerGroup中第二级TimePicker拖动后快速点击确定,取值错误 #12819

Open
Brand0n-Zhang opened this issue Apr 22, 2024 · 1 comment

Comments

@Brand0n-Zhang
Copy link

重现链接

https://vant-contrib.gitee.io/vant/#/zh-CN/picker-group

Vant 版本

4.8.10

描述一下你遇到的问题。

PickerGroup中第二级TimePicker拖动后快速点击确定,取值错误

重现步骤

2024-04-22.19.16.44.mov

设备/浏览器

No response

@wangjue666
Copy link
Contributor

const onConfirm = () => {
  nextTick(() => {
    showToast(`${currentDate.value.join('/')} ${currentTime.value.join(':')}`);
  })
};

@Brand0n-Zhang 加个nextTick就好了

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