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

fix bug under the condition of moment.locale("zh-cn") #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonChen003
Copy link

When I set moment.locale('zh-cn'), some problems are met on the panel of month. All months are selected. The pr is to solve this problem.

@mvachette
Copy link

I encoutered the same bug, and I can propose a more simple solution, (based on the code used for "day" panel)

//Month.jsx
   render() {
     const _moment = this.state.moment;
-    const months = MONTHS;
+    const {months = MONTHS} = this.props;
     const {changePanel, style} = this.props;

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

Successfully merging this pull request may close these issues.

2 participants