Multiple-Dates-Picker-for-jQuery-UI
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard
After removing dates manually from input, selected dates in the calendar are not updated
Priority: medium
Reproduce:
Use an input field for the calendar:
Javascript:
$('#mdp-demo').multiDatesPicker();
- Click on the input to show the datepicker
- Select some days (and close the datepicker)
- Remove some of the dates in the input field manually
- Click on the input to show the datepicker
Expected result: only the (valid) dateswhich in the input field are selected in the datepicker Actual result: all the previously selected dates are selected in the datepicker (The visual styles are not updated)
Workaround:
Simply disable the posibility to change the dates manually, by making the input readonly:
$('#mdp-demo').attr('readonly', true);