From dfde40f3b4321bca42a7b691e83196d8183249da Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 28 Aug 2024 10:03:26 +0200 Subject: [PATCH] Adjust Dropdown story --- stories/Dropdown.stories.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stories/Dropdown.stories.tsx b/stories/Dropdown.stories.tsx index 5227c3c..2155d76 100644 --- a/stories/Dropdown.stories.tsx +++ b/stories/Dropdown.stories.tsx @@ -40,6 +40,7 @@ type Props = { const Template = (p: Props) => { const [value, setValue] = useState(""); + const onChange = (e: ChangeEvent) => { p.onChange(e); setValue(e.currentTarget.value); @@ -57,6 +58,8 @@ const Template = (p: Props) => { onChange={onChange} onSelected={onSelected} value={value} + id={"dropdown"} + label={"Dropdown"} options={[ { title: "File1.pdf", @@ -81,5 +84,7 @@ export const CustomStyle: Story = { options: [], style: { "--codex-input-border": "1px solid red" }, value: "", + id: "dropdown", + label: "Dropdown", }, };