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

Issue with Date Picker Component Not Falling Back to Default Language #5903

Open
Bhaskara-Varma-D opened this issue Nov 11, 2024 · 1 comment
Assignees

Comments

@Bhaskara-Varma-D
Copy link

Bhaskara-Varma-D commented Nov 11, 2024

Describe the bug
I was using the Date Picker component in the Form.io sandbox and encountered an issue with language support for Flatpickr. It appears that the Flatpickr library used in Form.io supports 65 languages. However, when specifying a language code that is not supported, the date picker fails to open entirely, sandbox is not working properly.

Version/Branch
v5.0.0-rc.98

To Reproduce
Steps to reproduce the behavior:

  1. Open the Form.io sandbox and add a Date Picker component.
  2. Configure the component to use an unsupported language code.
  3. Attempt to open the calendar and observe that it does not open or try to make any changes in the sandbox.

Expected behavior
When using a language code that is unsupported, I expected the Date Picker to fall back to the default calendar, most likely in English, rather than not functioning at all.

Observed Behavior
If a language code outside the 65 supported ones is set, the Date Picker component does not display, and no fallback to English occurs.

Screenshots
'es' is supported by flatpickr
image

'el' is not supported by flatpickr
image

@lane-formio
Copy link
Contributor

After review, we don't expect to resource a developer to investigate this in the near future but would be happy to review any contributions to resolve this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants