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", }, };