Skip to content

Commit 99c2ff4

Browse files
committed
fix type error
1 parent 26ff65f commit 99c2ff4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/react/src/components/error-summary/error-summary.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { DSErrorSummaryElement } from '@digdir/designsystemet-web';
12
import type { Meta, StoryFn } from '@storybook/react-vite';
23
import { useEffect, useRef, useState } from 'react';
34
import { expect, userEvent, within } from 'storybook/test';
@@ -85,7 +86,7 @@ WithForm.decorators = [
8586

8687
export const ShowHideReact: Story = () => {
8788
const [show, setShow] = useState(false);
88-
const summaryRef = useRef<HTMLDivElement>(null);
89+
const summaryRef = useRef<DSErrorSummaryElement>(null);
8990
useEffect(() => {
9091
if (show) {
9192
summaryRef.current?.focus();

0 commit comments

Comments
 (0)