I'm using HTML5 and adding an input
with a type="date"
for a date picker, but when I have Developer Tools open, every time I click in my input
I get the following error displayed.
Uncaught DOMException: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('date') does not support selection
Although it's not causing an issue to the user, ideally I don't want the error and was wondering if anyone has come across this and how to fix it.
This is my HTML:
<input id="startDate" class="form-control text-uppercase" type="date" />
Screenshot of my console.log: