Our pure JavaScript Scheduler component


Post by didot »

we use b-modal when onEventclick , but sometime we fond error can not get data eventRecord

error : TypeError: event.eventRecord is undefined
Attachments
error eventRecord.png
error eventRecord.png (61.8 KiB) Viewed 1303 times

Post by mats »

Please provide a clear test case so we can reproduce this and see what's wrong.

Post by didot »

this my code

onEventclick:function(event){
this.reservation_detail_selected=event.eventRecord;
this.$refs["modalReservationDetailChart"].show();
}


for the case:
1. i'm click event the Popup is showing.
2. i close the popup
3. i'm click other event and close popup again
4. i scroll calender to right and i click event and show popup.
5. i back again to first event, i found the error TypeError: event.eventRecord is undefined

but we found error is some time ...

Post by mats »

Can’t help without full testcase sorry

Post by didot »

i put case in Attachments
Attachments
This step 2 is error <br /><br />TypeError: event.eventRecord is undefined
This step 2 is error

TypeError: event.eventRecord is undefined
calender step 2.png (27.82 KiB) Viewed 1292 times
This step 1 is working
This step 1 is working
calender step 1.png (27.17 KiB) Viewed 1292 times

Post by pmiklashevich »

Hello,

It's impossible to help you without a clear test case. To create a test case please edit one of our basic examples until it starts failing, zip it up and attach here. Also provide detailed instructions of how to launch your app and steps to reproduce the issue. How to ask for help is described here: viewtopic.php?f=35&t=772

Thanks,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply