You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I try to describe the issue, sorry for my english.
Open duDatepicker, if you click in some dates and push OK button, all works (show from console output):
{
"isTrusted": false,
"data": {
"_dates": [
"2022-05-19T22:00:00.000Z",
"2022-05-25T22:00:00.000Z",
"2022-05-27T22:00:00.000Z"
],
"dates": [
"20/05/2022",
"26/05/2022",
"28/05/2022"
]
}
}
The issue happens when you stablish some dates in JS, open duDatepicker and click OK button without clicking more dates, JS stablish dates appears selected in duDatepicker, but in this case not work, console show:
{
"isTrusted": false,
"data": {
"_dates": [],
"dates": []
}
}
Images:
First time open duDatepicker and click some dates, push OK and receive dates selected:
Then, you in your JS stablish previous selected dates and show:
tmp_values = ["20/05/2022","26/05/2022","28/05/2022"]
duDatepicker('#daterangemultiple', 'setValue', tmp_values);
duDatepicker('#daterangemultiple', 'show');
duDatepicker apears with previous dates marked:
But when you push OK button no dates are returned:
The text was updated successfully, but these errors were encountered:
duDatepicker version: 2.0.2
Code:
duDatepicker('#daterangemultiple', {multiple: true, i18n: 'es', format: 'dd/mm/yyyy'});
...
tmp_values = ["01/05/2022", "02/05/2022"];
...
duDatepicker('#daterangemultiple', 'setValue', tmp_values);
duDatepicker('#daterangemultiple', 'show');
Description:
I try to describe the issue, sorry for my english.
Open duDatepicker, if you click in some dates and push OK button, all works (show from console output):
{
"isTrusted": false,
"data": {
"_dates": [
"2022-05-19T22:00:00.000Z",
"2022-05-25T22:00:00.000Z",
"2022-05-27T22:00:00.000Z"
],
"dates": [
"20/05/2022",
"26/05/2022",
"28/05/2022"
]
}
}
The issue happens when you stablish some dates in JS, open duDatepicker and click OK button without clicking more dates, JS stablish dates appears selected in duDatepicker, but in this case not work, console show:
{
"isTrusted": false,
"data": {
"_dates": [],
"dates": []
}
}
Images:
First time open duDatepicker and click some dates, push OK and receive dates selected:
Then, you in your JS stablish previous selected dates and show:
tmp_values = ["20/05/2022","26/05/2022","28/05/2022"]
duDatepicker('#daterangemultiple', 'setValue', tmp_values);
duDatepicker('#daterangemultiple', 'show');
duDatepicker apears with previous dates marked:
But when you push OK button no dates are returned:
The text was updated successfully, but these errors were encountered: