We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c5f53 commit 0e4a36dCopy full SHA for 0e4a36d
packages/headless/src/components/action-button/action-button.tsx
@@ -1,4 +1,4 @@
1
-import type { JSXChildren } from '@builder.io/qwik';
+import { JSXChildren, useId } from '@builder.io/qwik';
2
import { type ActionStore, Form } from '@builder.io/qwik-city';
3
import { QwikIntrinsicElements } from '@builder.io/qwik';
4
@@ -18,7 +18,7 @@ export const ActionButton = ({
18
<Form action={action}>
19
{params &&
20
Object.keys(params).map((key) => (
21
- <input type="hidden" name={key} value={params[key]} />
+ <input key={useId()} type="hidden" name={key} value={params[key]} />
22
))}
23
<button {...props}>{children}</button>
24
</Form>
0 commit comments