To eliminate the list arrow from view, utilize the
::-webkit-calendar-picker-indicator
selector and apply
display: none!important
; Be sure to use !important for the code to take effect. Alternatively, you can make the arrow color transparent by using
input[list]::-webkit-calendar-picker-indicator {color:transparent;}
.
It's important to note that
[list]::-webkit-calendar-picker-indicator
should be used to avoid interfering with your custom styling of
input[type="date"]
input[list]::-webkit-calendar-picker-indicator {
display: none!important;
}
<label for="customDataList">Choose an option:</label>
<input type="text" id="customDataList" list="custom-list">
<datalist id="custom-list">
<option value="Option 1">
<option value="Option 2">
<option value="Option 3">
<option value="Option 4">
<option value="Option 5">
</datalist>