Skip to content

Commit 17a7b1d

Browse files
authored
fix(sanity): add prop for constraintSize (#7421)
1 parent 6bd4f8c commit 17a7b1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/sanity/src/ui-components/inputs/DateInputs/DateTimeInput.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface DateTimeInputProps {
3030
timeStep?: number
3131
value?: Date
3232
calendarLabels: CalendarLabels
33+
constrainSize?: boolean
3334
}
3435

3536
export const DateTimeInput = forwardRef(function DateTimeInput(
@@ -44,6 +45,7 @@ export const DateTimeInput = forwardRef(function DateTimeInput(
4445
selectTime,
4546
timeStep,
4647
calendarLabels,
48+
constrainSize = true,
4749
...rest
4850
} = props
4951
const popoverRef = useRef<HTMLDivElement | null>(null)
@@ -103,7 +105,7 @@ export const DateTimeInput = forwardRef(function DateTimeInput(
103105
// see https://github.com/sanity-io/design/issues/519
104106
<LayerProvider zOffset={1000}>
105107
<Popover
106-
constrainSize
108+
constrainSize={constrainSize}
107109
data-testid="date-input-dialog"
108110
portal
109111
content={

0 commit comments

Comments
 (0)