I'm trying to achieve same behavior and having strange side effect of date jumping back to "today" after month is changed. I'm trying to achieve same behavior and having strange side effect of date jumping back to "today" after month is changed.
Here I have converted your example into jsfiddle to demonstrate what I mean. Here I have converted your example into jsfiddle to demonstrate what I mean.
This could be an issue if used as component or if opened by String.
Default: “en” The IETF code (eg “en” for English, “pt-BR” for Brazilian Portuguese) of the language to use for month and day names.
These will also be used as the input’s value (and subsequently sent to the server in the case of form submissions).
If a full code (eg “de-DE”) is supplied the picker will first check for an “de-DE” language and if not found will fallback and check for a “de” language.
Gives the ability to pick only a day, a month, a year or a decade.
The day is set to the 1st for “months”, the month is set to January for “years”, the year is set to the first year from the decade for “decades”, and the year is set to the first from the millennium for “centuries”. Default: 0, “days” Set a minimum limit for the view mode.
Default: false If true, selecting a year or month in the datepicker will update the input value immediately.
Otherwise, only selecting a day of the month will update the input value immediately. Default: true Whether or not to allow date navigation by arrow keys.