Im using HTML5
and adding an input
with a type="date"
for date picker
but when i have developer tools
open, everytime 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" />
Sceenshot of my console.log
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…