ElemeFE / ElemeFE/element-react

[DatePicker] 选择日期 2018.05.31 后,按右箭头,会直接跳转到 7 月

Open
#798 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/7429808/41013692-e8b4ff22-6979-11e8-838f-0e1d2b43c0d9.png)

下一页时,`date.setMonth(month + 1)`,这样 05.31 就会变成 07.01,因此,如果只是简单的加减一,上一页也会存在问题。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.