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

DatePicker 日历面板(预置农历)在选择1891年前时间报错卡死 #2611

Closed
atdow opened this issue Oct 7, 2023 · 0 comments · Fixed by #2854
Closed

DatePicker 日历面板(预置农历)在选择1891年前时间报错卡死 #2611

atdow opened this issue Oct 7, 2023 · 0 comments · Fixed by #2854
Assignees
Labels
4.x bug Something isn't working comp:datepicker

Comments

@atdow
Copy link

atdow commented Oct 7, 2023

Bug 描述
DatePicker 日历面板(预置农历)在选择1891年前时间报错卡死

参考
重现步骤:

  1. 链接:https://xiaomi.github.io/hiui/components/date-picker/
  2. 滚动到日历面板(预置农历)
  3. 时间选择1891年前时间
  4. 此时组件开始抛错

预期行为
能正常显示公历时间或能显示公历时间但农历时间不显示。

截屏
image
image
image

可重现环境:

  • 系统: win10
  • 浏览器: chrome
  • HiUI 的版本: latest

附加内容
一般来说公历和农历转换只提供了1891-2100年转换,但是超出范围可以不显示农历,但是不能报错

@atdow atdow added the bug Something isn't working label Oct 7, 2023
@atdow atdow changed the title 日历面板(预置农历)在选择1891年前时间报错卡死 DatePicker 日期选择器-日历面板(预置农历)在选择1891年前时间报错卡死 Oct 7, 2023
@atdow atdow changed the title DatePicker 日期选择器-日历面板(预置农历)在选择1891年前时间报错卡死 DatePicker 日历面板(预置农历)在选择1891年前时间报错卡死 Oct 7, 2023
maoguoping pushed a commit to maoguoping/hiui that referenced this issue Jun 5, 2024
@zyprepare zyprepare self-assigned this Jun 6, 2024
solarjoker added a commit that referenced this issue Jun 12, 2024
fix(date-picker): 修复预置农历下切换 1891 年以前组件报错问题 (#2611)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x bug Something isn't working comp:datepicker
Projects
None yet
2 participants