Hi guys, when i try to add some my own function before edit/delete schedule events, it throw below exception:
weekView.js:278 Uncaught TypeError: Cannot read property 'fire' of undefined
at onDeleteSchedule (weekView.js:278)
at ScheduleDetailPopup.CustomEvents.invoke (tui-code-snippet.js:3230)
at ScheduleDetailPopup.CustomEvents.fire (tui-code-snippet.js:3185)
at ScheduleDetailPopup._onClickDeleteSchedule (scheduleDetailPopup.js:110)
at ScheduleDetailPopup._onClick (scheduleDetailPopup.js:81)
at HTMLDivElement.handler (domevent.js:54)
It only appears when i set scheduleView: false or scheduleView: ['allday'].
It only appears in day/week view, won't appear in month view.
So i think that there must be something wrong in time view.
Then i look into the callstack, when it ran into function onDeleteSchedule:
The param of function is not a Schedule object, so it doesn't have a isAllDay prop, then it jump into the else block. But as i set time view as false before, the time object is undefined, so the issue happened,
To Reproduce
Steps to reproduce the behavior:
Create a calendar sample.
set scheduleView as false.
create a schedule, which category is task.
try to edit the schedul or delete it on screen.
Expected behavior
No exception happened and the listener event triggered correctly.
Screenshots
Sample in my code:
Console print:
CallStack screenshoot:
Desktop (please complete the following information):
Describe the bug
Hi guys, when i try to add some my own function before edit/delete schedule events, it throw below exception:
It only appears when i set
scheduleView: false
orscheduleView: ['allday']
. It only appears in day/week view, won't appear in month view. So i think that there must be something wrong in time view. Then i look into the callstack, when it ran into functiononDeleteSchedule
:The param of function is not a Schedule object, so it doesn't have a
isAllDay
prop, then it jump into the else block. But as i set time view as false before, the time object is undefined, so the issue happened,To Reproduce
Steps to reproduce the behavior:
Expected behavior
No exception happened and the listener event triggered correctly.
Screenshots
Sample in my code:
Console print:
CallStack screenshoot:
Desktop (please complete the following information):