Skip to content

Commit 697addc

Browse files
fix(print): use focus events for date range blur
Refs: PS-275
1 parent 76244c2 commit 697addc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/form/partitions/DateRange.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface EventWithDateObjects extends Omit<Event, 'start_time' | 'end_time'> {
4040

4141
interface Props {
4242
errors: FormikErrors<Event>;
43-
handleBlur: (_event: React.FormEvent<HTMLElement>) => void;
43+
handleBlur: (_event: React.FocusEvent<HTMLElement>) => void;
4444
handleChange: (
4545
event:
4646
| { target: { id: string; value: unknown } }
@@ -95,7 +95,7 @@ const DateRange: React.FC<Props> = ({
9595
const syntheticEvent = {
9696
currentTarget: { id },
9797
preventDefault: () => {},
98-
} as React.FormEvent<HTMLElement>;
98+
} as React.FocusEvent<HTMLElement>;
9999

100100
handleBlur(syntheticEvent);
101101
};

0 commit comments

Comments
 (0)