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

[Component] [All] DateTimePicker 日期时间选择器选择都选择当天日期后输入开始时间再输入结束时间开始时间显示有问题 #16667

Open
cluyun opened this issue Apr 25, 2024 · 2 comments · May be fixed by #16748

Comments

@cluyun
Copy link

cluyun commented Apr 25, 2024

Bug Type: Component

Environment

  • Vue Version: 3.4.25
  • Element Plus Version: 2.7.1
  • Browser / OS: 最新
  • Build Tool: Vite

Reproduction

Related Component

  • All

Reproduction Link

Docs CN

Steps to reproduce

1、点日期框(此时会弹出日期选择,有左边和右边两个)
2、左边开始面板选16日,右边也选16日
3、在左边时间框上面输入时间:16:00:00(此时你会发现第一个问题,他会从00:00:00变成当前时间)
4、在右边时间框上面输入时间:16:40:00(此时发现第二个问题,第一个时间框时间变成了一个莫名其妙的值)

What is Expected?

输入时间的时候,值不要变,按我输入的来

What is actually happening?

时间总是会发生变化,自动变,不可控,没有任何属性和方法可以控制这个现象

Additional comments

我希望知道当前版本的临时解决方案

1

@Liao-js
Copy link
Contributor

Liao-js commented Apr 26, 2024

你可以先输入结束时间,再输入开始时间就不会变了,结束时间 > 开始时间。
看动图开始时间会改变的原因:你输入的时候,结束时间就已经在判断是否大于开始时间了,发现开始时间 > 结束时间的时候,就会导致开始时间 = 结束时间

@cluyun
Copy link
Author

cluyun commented Apr 26, 2024

你可以先输入结束时间,再输入开始时间就不会变了,结束时间 > 开始时间。 看动图开始时间会改变的原因:你输入的时候,结束时间就已经在判断是否大于开始时间了,发现开始时间 > 结束时间的时候,就会导致开始时间 = 结束时间

用户提的。我是开发。只负责解决问题

@xiaodong2008 xiaodong2008 linked a pull request May 4, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants