Skip to content

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

Open
jonChen003 wants to merge 1 commit intoAllenWooooo:masterfrom
jonChen003:feature/ModifyMonthDisplay
Open

fix bug under the condition of moment.locale("zh-cn")#32
jonChen003 wants to merge 1 commit intoAllenWooooo:masterfrom
jonChen003:feature/ModifyMonthDisplay

Conversation

@jonChen003
Copy link
Copy Markdown

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
Copy Markdown

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