Closed nhatdq1810 closed 4 years ago
1.0.4
Browser: Chrome 77.0.3865.120 OS: Windows
<Calendar ref={calendarRef} template={{time: getTimeTemplate(calendarView)}} />
calendarRef.current.getInstance().setOptions({ template: { time: getTimeTemplate(calendarView) } })
const getTimeTemplate = (calendarView) => (schedule) => { return calendarView === 'month' ? 'aaa' : 'bbb'; };
The template should be changed
@nhatdq1810 TOAST UI Calendar bug. If you pass a template prop to setOptions, it doesn't apply!
I'll register the issue and manage it here.
Many thanks @jungeun-cho
Patched in v1.12.10 :)
Version
1.0.4
Test Environment
Browser: Chrome 77.0.3865.120 OS: Windows
Current Behavior
<Calendar ref={calendarRef} template={{time: getTimeTemplate(calendarView)}} />
Expected Behavior
The template should be changed