diff --git a/packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx b/packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx index 0b399271133..c59357c3903 100644 --- a/packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx +++ b/packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx @@ -319,18 +319,15 @@ export const CalendarMonth = ({ onSelectToggle(isOpen); }} onSelect={(ev, monthNum) => { - // When we put CalendarMonth in a Popover we want the Popover's onDocumentClick - // to see the SelectOption as a child so it doesn't close the Popover. - setTimeout(() => { - setIsSelectOpen(false); - onSelectToggle(false); - const newDate = changeMonth(Number(monthNum as string)); - setFocusedDate(newDate); - setShouldFocus(false); - onMonthChange(ev, newDate); - }, 0); + setIsSelectOpen(false); + onSelectToggle(false); + const newDate = changeMonth(Number(monthNum as string)); + setFocusedDate(newDate); + setShouldFocus(false); + onMonthChange(ev, newDate); }} selected={monthFormatted} + popperProps={{ appendTo: 'inline' }} > {longMonths.map((longMonth, index) => (