angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

datepicker validation should run when minDate or maxDate changes

Open matthewdfleming opened this issue 12 years ago • 5 comments

Here's the scenario.. on the documentation page..

  • Go to date range example in datepicker
  • Choose a from date (e.g. 12/09/2014)
  • Choose a to date (e.g. 15/09/2014)
  • Change the from date to a date past the to date (e.g. 12/09/2015)
  • Change the 'to date' to a date past the from date (e.g. 15/09/2015)

Everything should be good to go but you'll see that the 'from date' is still showing an error. I believe this is due to the validations not firing when the minDate or maxDate values are changed.

matthewdfleming avatar Sep 12 '14 14:09 matthewdfleming

I cannot recreate this issue on the current documentation page, the pickers won't let me choose a from date past the to date nor the other way around.

vmlf01 avatar Sep 26 '14 20:09 vmlf01

It's not about choosing from the popup.. just enter the date yourself in text.

edit: I understand from the first description why the word 'choose' was ambiguous

matthewdfleming avatar Sep 26 '14 20:09 matthewdfleming

@matthewdfleming I have the same issue described in #1147.

antonchaika avatar Oct 14 '14 11:10 antonchaika

Fixed by 10a9a15.

mgcrea avatar Oct 15 '14 23:10 mgcrea

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 26 '19 16:01 lock[bot]