diff --git a/src/GGanttRow.vue b/src/GGanttRow.vue index 2f81a11..64a5d7b 100644 --- a/src/GGanttRow.vue +++ b/src/GGanttRow.vue @@ -118,7 +118,10 @@ export default { this.timeUnit ) let bar = this.bars.find((bar) => - time.isBetween(bar[this.barStart], bar[this.barEnd]) + time.isBetween( + bar[this.ganttChartProps.barStartKey], + bar[this.ganttChartProps.barEndKey] + ) ) this.$emit('drop', { event: e, bar, time: time.format(this.timeFormat) }) },