We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26ff65f commit 99c2ff4Copy full SHA for 99c2ff4
1 file changed
packages/react/src/components/error-summary/error-summary.stories.tsx
@@ -1,3 +1,4 @@
1
+import type { DSErrorSummaryElement } from '@digdir/designsystemet-web';
2
import type { Meta, StoryFn } from '@storybook/react-vite';
3
import { useEffect, useRef, useState } from 'react';
4
import { expect, userEvent, within } from 'storybook/test';
@@ -85,7 +86,7 @@ WithForm.decorators = [
85
86
87
export const ShowHideReact: Story = () => {
88
const [show, setShow] = useState(false);
- const summaryRef = useRef<HTMLDivElement>(null);
89
+ const summaryRef = useRef<DSErrorSummaryElement>(null);
90
useEffect(() => {
91
if (show) {
92
summaryRef.current?.focus();
0 commit comments