Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Accept multiple range separators #1096

Open
jono-hayward opened this issue Mar 13, 2025 · 0 comments
Open

Feature request: Accept multiple range separators #1096

jono-hayward opened this issue Mar 13, 2025 · 0 comments
Labels
awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request

Comments

@jono-hayward
Copy link

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.

@jono-hayward jono-hayward added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant