Disable date segments and initialize it if they have only one possible value #139
Labels
✨ enhancement
New feature or request
🍰 p3-low
Tasks that are nice-to-have. Like minor bugs, non-essential features, or cosmetic changes.
What
When providing a min/max to the date fields, there is little point in letting the user interact with all the segments if some segments have locked ranges.
A locked range can happen in these scenarios:
A general rule could be derived that a segment should be locked if all the min/max more significant date parts have equal value.
This is observable in the native HTML date fields, the very first example of the MDN demonstrates this
Furthermore, locked segments can be safely initialized to that locked value, which is required since the user won't be able to edit them.
The text was updated successfully, but these errors were encountered: