Skip to content

Commit 0e4a36d

Browse files
tleperougioboa
andauthored
docs(website): fix menu item for loop key (#255)
* docs: fix menu item for loop[ key * fix: add key to action-button input --------- Co-authored-by: Giorgio Boa <[email protected]>
1 parent 43c5f53 commit 0e4a36d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/headless/src/components/action-button/action-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { JSXChildren } from '@builder.io/qwik';
1+
import { JSXChildren, useId } from '@builder.io/qwik';
22
import { type ActionStore, Form } from '@builder.io/qwik-city';
33
import { QwikIntrinsicElements } from '@builder.io/qwik';
44

@@ -18,7 +18,7 @@ export const ActionButton = ({
1818
<Form action={action}>
1919
{params &&
2020
Object.keys(params).map((key) => (
21-
<input type="hidden" name={key} value={params[key]} />
21+
<input key={useId()} type="hidden" name={key} value={params[key]} />
2222
))}
2323
<button {...props}>{children}</button>
2424
</Form>

0 commit comments

Comments
 (0)