react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

added validation to verify if date in DateInput is between minDate and maxDate

Open YounesZADI opened this issue 3 years ago • 4 comments

added validation to verify if date in DateInput is between minDate and maxDate

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • [X] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description

In this PR:

  • added verification if the typed date in DateInput is between minDate and MaxDate when editableDateInputs is set to true
  • when date is not valid display a specific message error

Related Issue: 538 (https://github.com/hypeserver/react-date-range/issues/538)

YounesZADI avatar Dec 08 '21 10:12 YounesZADI

Screenshot 2021-12-08 at 11 13 02

This is the expected behaviour

YounesZADI avatar Dec 08 '21 13:12 YounesZADI

This would be a very nice enhancement to have.

Is there any idea on when this might get looked at?

soundslikeodd avatar Aug 22 '22 17:08 soundslikeodd

@burakcan @kamyar @mkg0 any news on this ?

YounesZADI avatar Dec 30 '22 16:12 YounesZADI

@YounesZADI please see the readme.md and this isse: https://github.com/hypeserver/react-date-range/issues/590

burakcan avatar Jan 04 '23 12:01 burakcan