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

invalid dates from input value causes uncaught exception: Unexpected literal at position 1

Open systemdarena opened this issue 8 years ago • 0 comments

If the input text value is not a valid set of dates, for example just "0" is what I had, I get "uncaught exception: Unexpected literal at position 1" thrown when the multiDatesPicker tries to initialize. This causes javascript to completely bomb out... :(

I have kind of fixed it by simply adding a try/catch around the line methods.addDates.call(this, value.split(this.multiDatesPicker.separator));

systemdarena avatar Jan 31 '17 19:01 systemdarena