question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input type to DateInput

See original GitHub issue

It would be nice if it was possible to inject type of the DateInput, it uses ‘text’ but type ‘date’ provides a better experience in smartphone,

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
rafeememoncommented, Mar 17, 2016

Hey @edygar – I think we’ll be exposing the type of the input as a prop rather than making date the default as we discussed here.

0reactions
edygarcommented, Mar 15, 2016

For me there’s a simple solution, i just need to switch inputs accordingly with the resolution. It is just a shame that HTML5 date input comes so limited.

Anyway, thank you by the support. Good job in this component!

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="date"> - HTML: HyperText Markup Language
We create a new <input> element, try setting its type to date , then immediately check what its type is — unsupporting browsers...
Read more >
HTML input type="date" - W3Schools
The <input type="date"> defines a date picker. The resulting value includes the year, month, and day. Tip: Always add the <label> tag for...
Read more >
input type=date – date input control (NEW) - HTML5
The input element with a type attribute whose value is " date " represents a control for setting the element's value to a...
Read more >
Is there any way to change input type="date" format?
The question is, is it possible to force it's format to something like: DD-MM-YYYY ? html · css · date · input ·...
Read more >
The DateInput Component - React-admin - Marmelab
Ideal for editing dates, <DateInput> renders an HTML <input type="date"> element, that most browsers display as a date picker. DateInput.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found