Skip to content

Commit e2c5fe3

Browse files
committed
fix: append time pickers to body to avoid clipping
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
1 parent ca31b35 commit e2c5fe3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web/src/components/DateTimePicker.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const DateTimePicker: React.FC<{
2121
<DatePicker
2222
value={isValidDate(date) ? yyyyMMddFormat(date) : ''}
2323
onChange={(_event, _inputDate, newDate) => onChange(copyTime(newDate, date))}
24+
appendTo={() => document.body}
2425
/>
2526
</InputGroupItem>
2627
<InputGroupItem>
@@ -30,6 +31,7 @@ export const DateTimePicker: React.FC<{
3031
if (isValid) onChange(setTime(date, hour, minute, second));
3132
}}
3233
is24Hour={true}
34+
menuAppendTo={() => document.body}
3335
width="80px"
3436
/>
3537
</InputGroupItem>

0 commit comments

Comments
 (0)