vue3-datepicker icon indicating copy to clipboard operation
vue3-datepicker copied to clipboard

Enable all dates, even in next or previous month

Open scenoxshift opened this issue 4 years ago • 3 comments

zaza

Currently you can only select the dates from the selected month

Any way to make to be able to select dates from next/prev month, which are now disabled?

scenoxshift avatar Aug 31 '21 11:08 scenoxshift

Agreed this is an issue that should be fixed. Especially confusing when certain dates are disabled as it appears as though dates in previous/next month are disabled as well.

I think it should not show those dates so it forces user to click arrows or allow them to be clicked.

gvandekrol avatar Oct 27 '21 15:10 gvandekrol

@scenoxshift @gvandekrol I have created a new package (I couldn't wait for this feature). Thoughts on the new param allowOutsideInterval? I chose this name because the current package disables a date if its outside the current month or if its marked disabled

Package: https://www.npmjs.com/package/vue3-datepicker-smoakey Docs: https://smoakey.github.io/vue3-datepicker/config.html#allowoutsideinterval

Im happy to put cleanup and put in a PR. I'd prefer not to maintain a separate package.

smoakey avatar Oct 28 '21 03:10 smoakey

This is great, thank you very much! The param allowOutsideInterval makes sense to me. Yes, please put in a PR. We’ll switch back to the original package when that is merged.

gvandekrol avatar Oct 28 '21 10:10 gvandekrol