File tree 1 file changed +3
-1
lines changed
packages/sanity/src/ui-components/inputs/DateInputs
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export interface DateTimeInputProps {
30
30
timeStep ?: number
31
31
value ?: Date
32
32
calendarLabels : CalendarLabels
33
+ constrainSize ?: boolean
33
34
}
34
35
35
36
export const DateTimeInput = forwardRef ( function DateTimeInput (
@@ -44,6 +45,7 @@ export const DateTimeInput = forwardRef(function DateTimeInput(
44
45
selectTime,
45
46
timeStep,
46
47
calendarLabels,
48
+ constrainSize = true ,
47
49
...rest
48
50
} = props
49
51
const popoverRef = useRef < HTMLDivElement | null > ( null )
@@ -103,7 +105,7 @@ export const DateTimeInput = forwardRef(function DateTimeInput(
103
105
// see https://github.com/sanity-io/design/issues/519
104
106
< LayerProvider zOffset = { 1000 } >
105
107
< Popover
106
- constrainSize
108
+ constrainSize = { constrainSize }
107
109
data-testid = "date-input-dialog"
108
110
portal
109
111
content = {
You can’t perform that action at this time.
0 commit comments