Currently what happens is the datepicker is only opened when you click the calendar icon but i need it to open both when the input field is clicked and when the calendar icon is clicked. I have found that there is an onclick prop but I don't know how to add the function to trigger the dialog to open. Here is my code
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<KeyboardDatePicker
variant="inline"
fullWidth
margin="normal"
format={dateFormat}
KeyboardButtonProps={{
"aria-label": "change date",
}}
autoOk
name={field.name}
value={field.value || null}
helperText={showError && error}
error={Boolean(showError)}
onClose={handleTouch}
onChange={handleChange}
onTouchEnd={handleTouch}
onBlur={handleTouch}
onClick={}
PopoverProps={{
anchorOrigin: { horizontal: "left", vertical: "bottom" },
transformOrigin: { horizontal: "left", vertical: "top" },
}}
{...other}
/>
</MuiPickersUtilsProvider>