vue-tailwind-datepicker icon indicating copy to clipboard operation
vue-tailwind-datepicker copied to clipboard

Inconsistent behavior when disabling future dates after selecting a date

Open ryuzaki369 opened this issue 1 year ago • 3 comments

Describe the bug When attempting to disable future dates, the functionality works properly until a date is selected. After selecting a date, the disabled dates are no longer functioning as expected.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the date picker functionality.
  2. Disable all future dates.
  3. Select a date from the date picker.
  4. Attempt to select a future date

Expected behavior The functionality should consistently disable all dates beyond the selected date, maintaining the initial restriction on future dates.

Screenshots image

image

Desktop & mobile (please complete the following information):

  • Browser: Chrome
  • Library version: 1.6.1

ryuzaki369 avatar Nov 06 '23 14:11 ryuzaki369

Hey, Kindly asking if there are any chances this can be fixed in the next releases? Love the component, but this issue is a blocker for the production usage. Many thanks in advance!

seobrain avatar Jan 22 '24 17:01 seobrain

Hey, I dug into the code and found something called disableInRange. It's not in the docs, but adding it to the component did the trick.

Slubby avatar Jan 27 '24 11:01 Slubby

i describe this bug here https://github.com/elreco/vue-tailwind-datepicker/issues/114#issuecomment-1962407529

smerchkz avatar Feb 24 '24 22:02 smerchkz