-
-
Notifications
You must be signed in to change notification settings - Fork 172
Description
Is your feature request related to a problem? Please describe.
In testing this component, many of my users expressed confusion at being unable to type their date range as something like "13/5/2025 to 19/5/2025". I have the datepicker configured to use the default hyphen as the rangeSeparator as I believe that's the most common usage, but I can understand wanting to use "to" as well. Unfortunately, the datepicker currently only accepts a single rangeSeparator so I have to choose one or the other.
Describe the solution you'd like
Update rangeSeparator so that it can optionally accept an array of values, much like how text-input.format can.
Describe alternatives you've considered
Have attempted using a regex object /(-|to)/ instead of a string to no avail.