Fix:Datepicker disabledDate + monthRange does not behave as expected #2569
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
中文模板 / Chinese Template
What kind of change does this PR introduce? (check at least one)
PR description
Fixes #2567
点击前时间: 2024-11 到 2025-01
点击右侧面板的 2024 后,理论上时间会变为 2023-11 到 2024-01,此时命中了禁用区间所以无法跳转成功。
修复逻辑如下 👇
如果进行某个年份选择,在 autoSelectMonth func 中,会对不符合要求的时间进行月份矫正,矫正到当前年月为非禁用态。
那么针对两个面板的时间可能出现以下 4 种状态
矫正方式为 对齐当前面板矫正后(如需)的时间。
Changelog
🇨🇳 Chinese
🇺🇸 English
Checklist
Other
Additional information