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.

Cannot type on datetime-local input

See original GitHub issue

Hi, i’m trying to type on an input of datetime-local type. On the documentation, it says that datetime-local is supported but nothing was never typed, no matter how I tried to type it type.('10102019{rightarrow1010pm}',type.('000000000000pm}'). Also, in this #1366 issue has a workaround. but both did not work. It does select the input, but never types.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sadplacecommented, Nov 2, 2018

So, i did some more tests and this is what i found out: Code:

cy
  .get("input[type=\"datetime-local\"]:first")
  .type("1959-09-13T10:10");
Error:
The specified value "1" does not conform to the required format
The format is "yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS".
The specified value "9" does not conform to the required format
The format is "yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS".
The specified value "5" does not conform to the required format
The format is "yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS".
... for all numbers of datetime

I have tried with input type date and works fine

1reaction
cypress-bot[bot]commented, Oct 23, 2019

Released in 3.5.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="datetime-local"> - HTML - MDN Web Docs
One thing the datetime-local input type doesn't provide is a way to set the time zone and/or locale of the date/time control. This...
Read more >
input type datetime-local is not working in firefox
I have an input type of datetime-local which is working fine in chrome but when i try to run the same page in...
Read more >
HTML | DOM Input DatetimeLocal readOnly Property
The Input DatetimeLocal readOnly property is used to set or return whether a datetimeLocal field should be read-only, or not.
Read more >
HTML DOM Input DatetimeLocal value Property - W3Schools
Note: The <input type="datetime-local"> element does not show any datetime field/calendar in Firefox. Syntax. Return the value property: datetimelocalObject.
Read more >
input type datetime-local
This input type currently works correctly in Chrome, is partially implemented in Safari and doesn't work (i.e., doesn't perform a numeric edit) ...
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