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] DatePicker.EmbedDatePicker validRange的范围与预期不符 #2375

Open
1 task
yiescc opened this issue Aug 22, 2022 · 0 comments
Open
1 task

[BUG] DatePicker.EmbedDatePicker validRange的范围与预期不符 #2375

yiescc opened this issue Aug 22, 2022 · 0 comments
Labels

Comments

@yiescc
Copy link

yiescc commented Aug 22, 2022

⌨️

  • Would you like to work on a fix?

Where is the bug from?

Fusion Mobile

Minimal code and steps to reproduce the bug

<DatePicker.EmbedDatePicker
validRange={[dayjs('2001-12-31').toDate(), dayjs('2004-01-01').toDate()]}
/>

Current and expected behavior

  • 用户只能选择到04年1月1日,但是组件展示不止1月1号

image

  • 如果改成 dayjs('2004-01-01 08:00:00').toDate(),或者new Date('2004-01-01'),就是符合预期的

Environment

最新

build.json

No response

Possible solution

  • 如果改成 dayjs('2004-01-01 08:00:00').toDate(),或者new Date('2004-01-01'),就是符合预期的

Additional context

No response

@yiescc yiescc added the Bug label Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant