Auto formatting in Calender is not rendering always the correct date
Describe the Bug
Adding the series of numbers in the calendar input field sometimes renders the number and converts them to the correct date, but sometimes it shows a random date which does not correspond to the added numbers.
Steps to Reproduce
this issue can reproduce in any application that uses the calendar ( specifically, here I add steps on how to reproduce it in the tasklist)
1- Open the tasklist and select ( Big form task) from the test date
2- Select the field I am a date field
3- Type a series of numbers like 022202022
4- you see filed auto format and show 02/22/2022
5- Type another series of numbers like 31091987
Current behaviour
render the number to a date which is not responsive for the number added
Expected Behavior
Option 1: in general, don't let users add numbers without following the format ( field validation) Option 2: convert the numbers always to the expected date, which matches the added numbers
https://github.com/bpmn-io/form-js/assets/42616604/175bf73d-8d0b-4629-a577-ab46a94f9b96
Environment
- Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
- OS:
- Library version: [e.g. 2.0.0]
Nice finding 👍
@ArezooAzar @pinussilvestrus can you please assign this to me!