Skip to content

Commit

Permalink
fix(next): fix month picker (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Jan 9, 2021
1 parent d52bceb commit f77b2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-components/src/date-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DatePicker.WeekPicker = connect({

DatePicker.MonthPicker = connect({
getValueFromEvent(value) {
return transformMoment(value)
return transformMoment(value, 'YYYY-MM')
},
getProps: mapStyledProps,
getComponent: mapTextComponent
Expand Down

0 comments on commit f77b2ca

Please sign in to comment.