Closed andrii-trush closed 6 years ago
Your issue title says "config not updated" and I showed you how you can update config dynamically.
@ankurk91 Yes. But it does not update config dynamically. Before I have had other issue, but cannot reproduce now (((
It is working fine for me. Configs are being updated. It is upto you; how to restrict user from selecting dates.
@ankurk91 If you select End date first - it works incorrect (((
You meant I need to select end date first and then start date? OR You are saying that I have selected end date first in my GIF.
You meant I need to select end date first and then start date?
Yes. Look at my gif. You see an error )))
I think i got your issue, now.
In this example, start date has a minDate
of today and if we select an end date before todays date; the "start date" input field locks down.
This issue can be fixed by setting minDate
on end date field.
Check the updated fiddle.
https://jsfiddle.net/w99v77k4/5/
You can configure datepickers like this as well. http://eonasdan.github.io/bootstrap-datetimepicker/#linked-pickers
@ankurk91 Ok. Click step by step:
In end date you cannot select from 24/12 to 27/12
Other issue:
You can select 25/12 and 26/12 as end date, but your start date is 27/12
I was able to reproduce your first case.
I found that Vue.js can is not detecting change in minDate
because it is moment js object.
I will keep you posted, if i found a solution.
@ankurk91 Thanks. Will wait, because i really require this issue )))
@andrii-trush This issue has been fixed in v4.1.1 Thanks for reporting and steps to re-produce.
Hello. Your example from #21 not working correctly. Steps:
Actual result: And you see that days are available, which are before start date
Expected result: Days have to be not available, which are before start date