If I use constructor to refresh control I am getting in some cases two calendar popups. If I use refresh method of datepicker onSelect event is lost.
I am missing method setMin/Max date to change this value later dinamicaly.
Best regards
Hi simon,
This *should* be straightforward -- the intent is that if you change the value of the `min` or `max` attributes on the input field, the calendar should automatically update. However, this is not the case, because there is a bug in AUI's datepicker implementation. I have raised an issue to track this bug: https://ecosystem.atlassian.net/browse/AUI-4956
As it stands today, it's not easy to do this dynamically. You would need to rely on internal implementation details of AUI's date picker component, which may change in future versions.
I have crafted a hack to demonstrate how you would lean on the internal implementation details. As you can see, it's not pretty... but it gets the job done: https://codepen.io/chrisdarroch/pen/NEQWVG
Hope that helps!
Daz
Hi Day
Thank you for reply. I'll check and probably replace my code with your. At the moment I am deleting and inserting datepicker element with new min/max values. I hope that that bug will be resolved soon :-)
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.