* Calendar: Fix event click and event drag were not properly separated

This commit is contained in:
nathangray 2020-08-31 09:57:07 -06:00
parent 7733c8dfd4
commit fb10829580
2 changed files with 2 additions and 2 deletions

View File

@ -1600,7 +1600,7 @@ var et2_calendar_timegrid = /** @class */ (function (_super) {
}
this.div.off('mousemove.dragcreate');
this.gridHover.css('cursor', '');
return this._drag_create_end(end);
return this._drag_create_end(this.drag_create.event ? end : undefined);
};
/**
* Get time from position for drag and drop

View File

@ -2101,7 +2101,7 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet
this.div.off('mousemove.dragcreate');
this.gridHover.css('cursor', '');
return this._drag_create_end(end);
return this._drag_create_end( this.drag_create.event ? end : undefined);
}
/**