Skip to content

Commit e38c307

Browse files
author
Peter Hellstrand
committed
fix(ffe-datepicker-react): event type onBlur
1 parent 55bc284 commit e38c307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { isDateInputWithTwoDigitYear, validateDate } from '../util/dateUtil';
1515
import debounce from 'lodash.debounce';
1616
import classNames from 'classnames';
1717
import { getSimpleDateFromString } from '../datelogic/simpledate';
18-
import { ErrorFieldMessage } from '@sb1/ffe-form-react/src/message';
18+
import { ErrorFieldMessage } from '@sb1/ffe-form-react';
1919
import i18n from '../i18n/i18n';
2020
import { isMonth } from '../types';
2121

@@ -25,7 +25,7 @@ export interface DatepickerCompProps {
2525
'aria-describedby'?: React.ComponentProps<'input'>['aria-describedby'];
2626
ariaDescribedby?: React.ComponentProps<'input'>['aria-describedby'];
2727
/** Triggered when focus leaves one of the fields (dd, mm, yyyy), and the next focused element is not one of these fields.*/
28-
onBlur?: (evt: React.FocusEvent) => void;
28+
onBlur?: (evt: React.FocusEvent<HTMLElement>) => void;
2929
calendarAbove?: boolean;
3030
id?: string;
3131
maxDate?: string | null;

0 commit comments

Comments
 (0)