Skip to content

Commit 155eb0c

Browse files
authored
fix(calendarmonth): make useEffect respect validators (#6315)
1 parent 54f01f8 commit 155eb0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ export const CalendarMonth = ({
176176
const calendar = React.useMemo(() => buildCalendar(focusedYear, focusedMonth, weekStart, validators), [
177177
focusedYear,
178178
focusedMonth,
179-
weekStart
179+
weekStart,
180+
validators
180181
]);
181182
if (!focusedDateValidated) {
182183
const toFocus = calendar

packages/react-inline-edit-extension/src/components/Body/Body.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const Body = ({ BodyComponent, rows = [], editConfig, onRowClick = () =>
128128
{...props}
129129
rows={mappedRows}
130130
onRowClick={(event, row, rowProps, computedData) =>
131-
onRow(event, row, rowProps, computedData, { onRowClick, editConfig })
131+
onRow(event as any, row, rowProps, computedData, { onRowClick, editConfig })
132132
}
133133
/>
134134
);

0 commit comments

Comments
 (0)