Skip to content

Conversation

marcoancona
Copy link

New proposal, using normal input field, instead of type=number.
Advantages:

  • no need for additional span to handle leading zeros, while supporting all major browsers
  • update on ArrowUp/ArrowDown easily handled at parent level ('DateInput`), allowing for infinite date sequences (ie. 12-31-2018 -> focus on day 31 -> ArrowUp -> 01-01-2019)
  • validation on minDate/maxDate also handled in DateInput, which simplifies the logic of DayInput, MonthInputandYearInput` quite a bit

What do you think?

@wojtekmaj wojtekmaj force-pushed the main branch 4 times, most recently from 8182ad3 to 21af20c Compare November 7, 2022 12:58
@wojtekmaj wojtekmaj force-pushed the main branch 3 times, most recently from e1c7dc5 to a524886 Compare January 4, 2023 23:23
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from 98e1adb to e253cd3 Compare March 2, 2023 08:43
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from 0b4cd33 to 9dfdb34 Compare April 5, 2023 11:00
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from c1a58a8 to 84b1863 Compare July 21, 2023 18:59
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from 37e50fb to 5584926 Compare October 23, 2023 10:20
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from 1fd7f2d to daa2c24 Compare November 2, 2023 07:30
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from cf15ab3 to a602a19 Compare June 18, 2025 22:10
@wojtekmaj wojtekmaj force-pushed the main branch 2 times, most recently from 4e7cb80 to 4575a91 Compare August 5, 2025 13:05
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

Successfully merging this pull request may close these issues.

1 participant