MikaelEdebro / vue-airbnb-style-datepicker

A VueJs datepicker with a similar look and functionality as the popular AirBnb datepicker.
https://mikaeledebro.gitbooks.io/vue-airbnb-style-datepicker/
MIT License
506 stars 105 forks source link

:mode="'single'" not working #78

Closed bilgino closed 5 years ago

bilgino commented 5 years ago

:mode="'single'" is not working properly, please check example in the app component: https://codesandbox.io/s/5xv36rn6rx

tehuel commented 5 years ago

The linked example is working for me, I can select days 1 or 8 of december.

I don't know what do you mean with not working, but maybe you have a problem with defining both enabled-dates and disabled-dates on the same date picker.

bilgino commented 5 years ago

I dont want to show the datepicker in "range"-mode |left-datepicker|right-datepicker|... I activated the single mode but its not working. My goal ist just to show one datepicker not two! thanx...

tehuel commented 5 years ago

The :mode="'single'" mode defines that you only select one date, in contrast wit the :mode="'range'" mode where you can select a pair of dates.

To show a single calendar you can set :months-to-show="1". The default value is 2, according to docs.

bilgino commented 5 years ago

AH! Ok! Thanx...Worked