From f092d5a32e89d7ec298b189cc06547b9fb2bcdf8 Mon Sep 17 00:00:00 2001 From: meihuanyu Date: Thu, 3 Jan 2019 08:06:40 -0600 Subject: [PATCH] fix calendar month range display (#14049) --- components/calendar/Header.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/calendar/Header.tsx b/components/calendar/Header.tsx index ffc8ab7f6b..f82b875a7c 100644 --- a/components/calendar/Header.tsx +++ b/components/calendar/Header.tsx @@ -83,7 +83,8 @@ export default class Header extends React.Component { const currentYear = value.get('year'); if (rangeEnd.get('year') === currentYear) { end = rangeEnd.get('month') + 1; - } else if (rangeStart.get('year') === currentYear) { + } + if (rangeStart.get('year') === currentYear) { start = rangeStart.get('month'); } }