Reputation: 51
I've pretty much looked everywhere and have tried every solution posted I could find but nothing works. Can someone help me?
Here is my code:
<Controller
name="startTime"
control={control}
rules={{ validate: validateTime }}
render={({ field }) => (
<TimePicker
{...field}
value={field?.value || null}
format="HH:mm"
name="startTime"
ampm={false}
minutesStep={15}
label="24 hours"
className="time-picker"
slotProps={{
textField: {
sx: {
borderRadius: 6,
fieldset: { borderRadius: 6 },
[`.${OutlinedInputClasses.root}`]: {
height: 80,
width: 300,
},
'& .MuiInputLabel-root': { lineHeight: 3 },
},
},
}}
/>
)}
/>;
Upvotes: 0
Views: 66
Reputation: 51
I found the issue. It was a stylesheet issue:
body > div {
width: 100%;
}
Once I removed the above code it works fine now.
Upvotes: 0