mattlewis92/angular-bootstrap-calendar

Dragging event also fires range selection

trks1970 opened this issue ยท 6 comments

When dragging an event forward (eg: to a date after the current date in month view) on-date-range-select and on-event-times-changed are both invoked.
Is there a possibility to distinguish if range selection occured because of a drag or without an event being dragged?

First of all - @mattlewis92, should on-date-range-select really be invoked in this case?

No, that would of course be the preferred case.
It should only be invoked, without a drag.

This does look like a bug, the date range select simply shouldn't be invoked when dragging an event. Plunker: http://plnkr.co/edit/ykLjQN0uXyGBPBU16E6o?p=preview

I've just cut 0.29.3 which should fix this, LMK if it works for you ๐Ÿ˜„

Aye, it does work. Thanks for the quick fix.

That's great to hear! ๐Ÿ˜€