mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 369 forks source link

Problem on drag event #613

Closed leonvelicea closed 7 years ago

leonvelicea commented 7 years ago

Bug description / Feature request:

The error occours while moving and event from a day to another, and more precisly on the drop event. I am using this calendar as a schedular and while it still functions even with this error it's not really that nice. If you need more information please let me know. Stacktrace: Uncaught TypeError: Cannot set property 'endDate' of undefined at Object.o.onDragSelectEnd (mwlCalendarMonth.js:136) at fn (eval at compile (angular.js:15358), :4:235) at HTMLDivElement. (mwlDragSelect.js:12) at HTMLDivElement.dispatch (jquery.min.js:3) at HTMLDivElement.q.handle (jquery.min.js:3)

Versions

Angular: 1.6.4

Calendar library: 0.29.0

Browser name and version: Chrome Version 58.0.3029.110 (64-bit)

mattlewis92 commented 7 years ago

I can't reproduce this on any of the demos, are you able to provide a plunker that reproduces it? Thanks!

leonvelicea commented 7 years ago

Unfortunetly I cannot provide a plunker , I would have to decouple a lot of code. I am sure that I am not doing something OK, I could not see the problem elsewhere. I will try to figure this out and I will let you know how this can be reproduced.

mattlewis92 commented 7 years ago

OK no worries 😄