Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deselect / reset selected date after select start-date & end-date #163

Closed
willi-dev opened this issue Sep 6, 2019 · 4 comments
Closed

Comments

@willi-dev
Copy link

willi-dev commented Sep 6, 2019

Description

i want to deselect /reset end-date when i click on selected date (start-date & end-date) after i choose start-date & end-date.

Expected behavior:
selected date that i have select, can click and reset end-date selected (i see it in example in https://krystalcampioni.github.io/vue-hotel-datepicker/ )

Screencast from 06-09-19 21_57_28

Actual behavior:
i can't click selected date and reset end-date

Datepicker Version

[Version 2.6.4 ]

@willi-dev willi-dev changed the title How to deselect start date after select startDate & endDate How to deselect / reset selected date after select start-date & end-date Sep 6, 2019
@zangab
Copy link

zangab commented Sep 12, 2019

@willi-dev
if you checkout our console / dev-tools you will see that this behaviour is caused by css and not js. the pointer-events are set to none -> problem. you will need the value all here so you can select it.

css-active-day

@zangab
Copy link

zangab commented Sep 12, 2019

and of course you put that only on the specific selected day class, not the datepicker__mont-day--disabled or otherwise all disabled dates will have a click handler.

@willi-dev
Copy link
Author

@zangab
i really forgot to check css.. just check js ..
I have tried and added it to my style
thank you for response..
👍

@emad-sure
Copy link

@zangab how can i apply it through nuxt js , classes selectors are just like ghosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants