From 150a8b222fa7722a5b9a9bc57e8201ff63039de7 Mon Sep 17 00:00:00 2001
From: Aider Emirsuinov <aideremir@gmail.com>
Date: Fri, 16 Oct 2020 02:22:26 +0300
Subject: [PATCH] fix(*): emitting calendar month change in calendar input

---
 src/calendar-input/calendar-input.tsx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/calendar-input/calendar-input.tsx b/src/calendar-input/calendar-input.tsx
index bbd6b16fdf..ecf70ebf59 100644
--- a/src/calendar-input/calendar-input.tsx
+++ b/src/calendar-input/calendar-input.tsx
@@ -476,6 +476,10 @@ export class CalendarInput extends React.Component<CalendarInputProps> {
         this.setState({
             month,
         });
+
+        if (this.props.calendar && this.props.calendar.onMonthChange) {
+            this.props.calendar.onMonthChange();
+        }
     };
 
     private handleCalendarFocus = (event) => {