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

a-date-picker component bug #6151

Open
1 task
zhengguodong opened this issue Dec 10, 2022 · 6 comments
Open
1 task

a-date-picker component bug #6151

zhengguodong opened this issue Dec 10, 2022 · 6 comments
Labels

Comments

@zhengguodong
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.4

Environment

无关版本,组件的问题

Reproduction link

https://www.antdv.com/components/date-picker-cn

Steps to reproduce

disabledTime 属性设置禁止的时间,通过input输入能选择到禁止的时间。当某一天的某时间段禁止时,通过另一天选择时间,再切回原时间,禁止的时间依然能选择

What is expected?

input输入不能选择禁止的时间;时间切换时能校验选择的时间是否禁止

What is actually happening?

禁止的time时间存在可选的情况

@github-actions github-actions bot changed the title a-date-picker组件bug a-date-picker component bug Dec 10, 2022
@kovsu
Copy link
Member

kovsu commented Dec 11, 2022

image
你好,是这个 bug 吗?
今天是不能选中的,但是点击这个 Now 却能选中一个被 disable 的时间。

@zhengguodong
Copy link
Author

类似这个bug,也是在切换时,能选中一个被 disable 的时间。比如:8号的10-12点时间被禁用了,这时我在9号选择11点,再切回8号,就能选择8号11点这个时间了。
直接输入的话,disable的时间也是可以被选中的

@kovsu
Copy link
Member

kovsu commented Dec 11, 2022

噢,大概明白了,我明天再去看看。
你能把你出 bug 的那部分代码,发出来一下吗,我做一下测试。
thx :)

@Tbx998
Copy link

Tbx998 commented Dec 19, 2022

有人遇到过这个问题嘛
image
我的配置了中文,但是它的月份那里还是英文的,有什么办法解决吗

@0Yinchen0
Copy link

有人遇到过这个问题嘛 image 我的配置了中文,但是它的月份那里还是英文的,有什么办法解决吗

你好,解决了吗,我也遇到了这个问题

@0Yinchen0
Copy link

版本1.7.8

有人遇到过这个问题嘛 image 我的配置了中文,但是它的月份那里还是英文的,有什么办法解决吗

版本1.7.8

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

Successfully merging a pull request may close this issue.

5 participants