Cannot update option template - time
nhatdq1810 opened this issue · comments
Đặng Quang Nhật commented
Version
1.0.4
Test Environment
Browser: Chrome 77.0.3865.120
OS: Windows
Current Behavior
- Set
<Calendar ref={calendarRef} template={{time: getTimeTemplate(calendarView)}} />
- When user changes calendar view - onChangeCalendarView even calls
calendarRef.current.getInstance().setOptions({
template: { time: getTimeTemplate(calendarView) }
})
- Function getTimeTemplate is like
const getTimeTemplate = (calendarView) => (schedule) => {
return calendarView === 'month' ? 'aaa' : 'bbb';
};
- The template of time is not changed
Expected Behavior
The template should be changed
조정은 commented
@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.
Đặng Quang Nhật commented
Many thanks @jungeun-cho