Would there be any way to block this little piece there?
Would there be any way to block this little piece there?
You're looking for webkit-inner-spin-button
. You can even disable Calendar Picker
if you want. About using ::placeholders
to be supported, take a look here: link
dateInput.addEventListener('keydown', function(event) {
if (event.keyIdentifier == "Down") {
event.preventDefault()
}
}, false);
input[type="date"]::-webkit-inner-spin-button{
-webkit-appearance: none;
}
.semPicker::-webkit-calendar-picker-indicator {
display: none;
}
<div class="caixa">
<input type="date" /> <br/> <br/>
<input type="date" class="semPicker" />
</div>