Multiple-Dates-Picker-for-jQuery-UI icon indicating copy to clipboard operation
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard

After removing dates manually from input, selected dates in the calendar are not updated

Open R-W-C opened this issue 7 years ago • 1 comments

Priority: medium

Reproduce:

Use an input field for the calendar:

Javascript:

$('#mdp-demo').multiDatesPicker();

  1. Click on the input to show the datepicker
  2. Select some days (and close the datepicker)
  3. Remove some of the dates in the input field manually
  4. 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)

R-W-C avatar May 02 '18 15:05 R-W-C

Workaround:

Simply disable the posibility to change the dates manually, by making the input readonly:

$('#mdp-demo').attr('readonly', true);

R-W-C avatar May 03 '18 09:05 R-W-C