I am using a html5 datetimepicker and would like the date popup to appear when you click anywhere on the input field rather than being forced to click the little arrow. How can I do this?
This question here shows that this can be done. Running the code through the link on the question or running the snippet on the answer. Clicking the input field opens the popup. how to style html5 date input, first element focus/active
::-webkit-inner-spin-button {
display: none;
}
::-webkit-datetime-edit-text {
background: none;
}
::-webkit-datetime-edit-month-field {
background: none;
}
::-webkit-datetime-edit-day-field {
background: none;
}
::-webkit-datetime-edit-year-field {
background: none;
}
::-webkit-datetime-edit-text:focus {
background: rgba(255, 255, 255, 0.5);
}
::-webkit-datetime-edit-month-field:focus {
background: rgba(255, 255, 255, 0.5);
}
::-webkit-datetime-edit-day-field:focus {
background: rgba(255, 255, 255, 0.5);
}
::-webkit-datetime-edit-year-field:focus {
background: rgba(255, 255, 255, 0.5);
}
::-webkit-clear-button {
display: none;
-webkit-appearance: none;
}
::-webkit-calendar-picker-indicator {
background: none;
}
<input [(ngModel)]="data.value.date_of_visit" id="selectedDate" type="date" name="date_of_visit" class="form-control date-filter pseudo-input live-update" placeholder="Event Date" value="2013-01-08" formControlName="date_of_visit" aria-describedby="inputSuccess2Status"
style="line-height: 20px;">
Any help is greatly appreciated!