OpenRailAssociation / osrd-ui

Icons, fonts, colors, components and all user interface items for OSRD project.
8 stars 5 forks source link

datePicker: check the validity of the input after clicking outside #603

Open axrolld opened 1 month ago

axrolld commented 1 month ago

Who would benefit from this feature?

End users

What is this feature about?

It would be nice to have this kind of warning: image

After entering a date without slash, or with missing numbers (actually anything that doesn't trigger the current warning but still doesn't follow dd/mm/yy) and clicking outside of the component. image image

That way the warning won't be constantly displayed, but only when the user leaves the component

Why is this feature valuable?

This feature matters because it will help the user set valid inputs

Anything else people should know?

Nope