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

Date range - validation

Open xbrabec opened this issue 12 years ago • 6 comments

Hi,

there seems to be a problem with validation and date picker used in a date range.

Please see the example: http://plnkr.co/edit/pnawAFYSR6GuTwk2HEZV?p=preview

  1. Select date "From", this makes the filed "From" invalid (red) because "Until" is not set yet, this seems correct
  2. Select date "Until", this filed is valid since we know the "From" already. But the filed "From" is still invalid! At this point I need to click into the "From" field again and select the data again.

Honza

xbrabec avatar Apr 03 '14 11:04 xbrabec

I also have this problem, and I noticed this also happens in the example on the docs page. It does not validate after you select the end date.

fdeus avatar Apr 04 '14 16:04 fdeus

Fixed by 219317732166ec394622ee3b331bb4d50e1831d7. Thanks for the report

mgcrea avatar Apr 07 '14 08:04 mgcrea

This is not working! Please fix this...

This issue is still actual for latest version.

antonchaika avatar Oct 13 '14 16:10 antonchaika

I don't see this happen when I try your sample nor in the docs pages. Please check again using latest version.

vmlf01 avatar Oct 13 '14 21:10 vmlf01

I'll try to explain the issue.

First of all you select new dates via datepicker like in the image below: 1

Next step is to write manually invalid date in for example first field. It becomes invalid. That's ok: 2

Then I change date in second field via datepicker. Invalid validation on first field remains. But it must disappear. 3

antonchaika avatar Oct 14 '14 09:10 antonchaika

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]