Skip to content

Commit

Permalink
fix: invalid time value, RangeError (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
ApoorvaCG authored Sep 5, 2024
1 parent 74eae34 commit bb52f92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DateRangePicker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ onMounted(() => {
class="rounded active:bg-primary-500 active:text-white flex justify-center items-center transition-colors duration-100 focus:ring-0"
:condensed="condensed"
@click="subTimeframeFromDate"
:disabled="!props.dateRange || stagedDateRange.length < 2"
>
<PhCaretLeft class="block" />
</RobustButton>
Expand Down Expand Up @@ -973,6 +974,7 @@ onMounted(() => {
class="rounded active:bg-primary-500 active:text-white flex justify-center items-center transition-colors duration-100 focus:ring-0"
:condensed="condensed"
@click="addTimeframeFromDate"
:disabled="!props.dateRange || stagedDateRange.length < 2"
>
<PhCaretRight class="block" />
</RobustButton>
Expand Down

0 comments on commit bb52f92

Please sign in to comment.