GH-2506 Calendar View (#2835)

* add key to create new component if activeview changes

* reset component

* removed an extra space

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
This commit is contained in:
Scott Bishel 2022-04-19 16:24:09 -06:00 committed by GitHub
parent 3c7fd72dcf
commit 0edf741c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,6 +223,7 @@ const CalendarFullView = (props: Props): JSX.Element|null => {
className='CalendarContainer' className='CalendarContainer'
> >
<FullCalendar <FullCalendar
key={activeView.id}
dayCellContent={dayCellContent} dayCellContent={dayCellContent}
dayMaxEventRows={5} dayMaxEventRows={5}
initialDate={initialDate} initialDate={initialDate}