File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -204,15 +204,13 @@ class Calendar extends BaseComponent {
204204 EventHandler . on ( this . _element , 'click' , '.btn-month' , event => {
205205 event . preventDefault ( )
206206 this . _view = 'months'
207- this . _element . innerHTML = ''
208- this . _createCalendarPanel ( )
207+ this . _updateCalendar ( )
209208 } )
210209
211210 EventHandler . on ( this . _element , 'click' , '.btn-year' , event => {
212211 event . preventDefault ( )
213212 this . _view = 'years'
214- this . _element . innerHTML = ''
215- this . _createCalendarPanel ( )
213+ this . _updateCalendar ( )
216214 } )
217215 }
218216
@@ -406,7 +404,7 @@ class Calendar extends BaseComponent {
406404
407405 _updateCalendar ( ) {
408406 this . _element . innerHTML = ''
409- this . _createCalendarPanel ( )
407+ this . _createCalendar ( )
410408 }
411409
412410 _dayClassNames ( date , month ) {
You can’t perform that action at this time.
0 commit comments