Skip to content

Commit

Permalink
Merge pull request #34 from shengslogar/main
Browse files Browse the repository at this point in the history
Check for optional parameter
  • Loading branch information
elreco authored Dec 7, 2022
2 parents 3e2a224 + 54e5ff0 commit 105d47a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VueTailwindDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ const setDate = (date, asNext, close) => {
)
)
}
close()
if (close) {
close()
}
applyValue.value = []
if (!dayjs(s, props.formatter.date, true).isSame(dayjs(e, props.formatter.date, true), 'month')) {
datepicker.value.previous = dayjs(s, props.formatter.date, true)
Expand Down

1 comment on commit 105d47a

@vercel
Copy link

@vercel vercel bot commented on 105d47a Dec 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.