flatpickr icon indicating copy to clipboard operation
flatpickr copied to clipboard

Mode multiple + allowInput: should make the space separator optional

Open coudrak opened this issue 2 years ago • 1 comments

Currently, with the options allowInput: true & mode: 'multiple', if you enter several dates with the separator comma and one or several spaces, it works. But if you forget to press a space after the comma, it doesn't work, the date is removed. It's not very user-friendly, I think the space should be optional in the parsing, the comma is enough.

Works --> 01/08/2023, 02/08/2023,     03/08/2023,  05/08/2023
Doesn't work (it removes the 2nd one) -->01/08/2023,02/08/2023,     03/08/2023,  05/08/2023

(copy/paste instead of typing does the same)

coudrak avatar Jul 02 '23 04:07 coudrak

conjunction parameter might help.

nboisteault avatar Jul 11 '24 12:07 nboisteault