Skip to content

Commit

Permalink
Merge pull request #26 from joffreyBerrier/feature/clear-selection-if…
Browse files Browse the repository at this point in the history
…-click-on-checkIn

clear selection when click on chekin
  • Loading branch information
joffreyBerrier authored Jun 2, 2020
2 parents b0ad002 + c791b0c commit 6251b24
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![npm](https://img.shields.io/npm/dt/vue-hotel-datepicker.svg)](vue-hotel-datepicker)
[![Build Status](https://travis-ci.org/krystalcampioni/vue-hotel-datepicker.svg?branch=master)](https://travis-ci.org/krystalcampioni/vue-hotel-datepicker)

# Release 0.4.8
# Release 0.4.9

# vue-hotel-datepicker@2

Expand Down
13 changes: 7 additions & 6 deletions dist/vueHotelDatepicker2.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vueHotelDatepicker2.common.js.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions dist/vueHotelDatepicker2.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vueHotelDatepicker2.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vueHotelDatepicker2.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vueHotelDatepicker2.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-hotel-datepicker2",
"version": "0.4.8",
"version": "0.4.9",
"author": "Joffrey Berrier - Origin created by krystalcampioni",
"description": "Vue date range picker component fork of vue-hotel-datepicker create by krystalcampioni",
"main": "dist/vueHotelDatepicker2.common.js",
Expand Down
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</div>
<div class="box">
<h3>
Disable checkout on the same date as checkin with
<strong>disableCheckoutOnCheckin</strong> props
Periods
<strong>periodDates</strong> props
</h3>
<DatePicker
:disabledDates="[
Expand Down Expand Up @@ -100,8 +100,8 @@
/>
</div>
<div class="box">
<h3>Allow check-in and check-out on the same day</h3>
<DatePicker :minNights="0" />
<h3>Disable check-in and check-out on the same day</h3>
<DatePicker :disableCheckoutOnCheckin="true" :minNights="0" />
</div>
<div class="box">
<h3>Allow selection of single day</h3>
Expand Down
1 change: 1 addition & 0 deletions src/components/Day.vue
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ export default {
if (this.disableCheckoutOnCheckin) {
if (this.checkIn && this.checkIn === date) {
disableCheckoutOnCheckin = false;
this.$emit("clearSelection");
} else {
disableCheckoutOnCheckin = true;
}
Expand Down

0 comments on commit 6251b24

Please sign in to comment.