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 #203

Open
wxd79 opened this issue Sep 7, 2023 · 0 comments
Open

设定日期最大范围后的bug #203

wxd79 opened this issue Sep 7, 2023 · 0 comments

Comments

@wxd79
Copy link

wxd79 commented Sep 7, 2023

开发者,你好,发现一个插件的bug现象:

再现步骤如下:

  1. 设定最大选择范围至 2024-01-31
  2. 启动程序,显示控件
  3. 设定初始日期为 2023-09-07
  4. 滚动选择年份为 2024年(期待得到的结果,2024-01-31)
  5. UI显示:2024-01-31(正常),但是在onSelect函数中取得的数据:2024-01-30

以下为个人猜测:

  1. 上述问题中的30日的问题原因来自于9月最大日期30日(我们测试将初始月份设置为2月份,onSelect中会得到: 2024-01-28)
  2. 出现问题后,如果做任何UI修改,好像问题bug都会消失。
  3. 似乎是因为日期范围的修改导致了月份/日期同时不合法,在判断合法日期的时候使用了旧的月份数据。
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

No branches or pull requests

1 participant