Skip to content

How to control the placeholder-text of the webkit-calendar? #870

Closed Answered by F-Kirchhoff
StephieTack asked this question in Web
Discussion options

You must be logged in to vote

The input with type="month" only works in chromium based browsers like Chrome, Edge or Opera.
If you want the user to select a date range I would suggest to use 2 input type="date" instead. One for the start of the range, one for the end date. You can filter your entries with something like entry.date > startDate && entry.date < endDate afterwards.
Please make sure to set the lower boundary for the enddate with <input type="date" min={startDate}>. Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StephieTack
Comment options

Answer selected by F-Kirchhoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants