Skip to content

Commit

Permalink
fix(www): enable input editing in the dialog demo (shadcn-ui#1428)
Browse files Browse the repository at this point in the history
Co-authored-by: shadcn <[email protected]>
  • Loading branch information
wangyedev and shadcn authored Sep 18, 2023
1 parent 8c3934e commit 08b0ab5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions registry/default/example/dialog-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ export default function DialogDemo() {
<Label htmlFor="name" className="text-right">
Name
</Label>
<Input id="name" value="Pedro Duarte" className="col-span-3" />
<Input
id="name"
defaultValue="Pedro Duarte"
className="col-span-3"
/>
</div>
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="username" className="text-right">
Username
</Label>
<Input id="username" value="@peduarte" className="col-span-3" />
<Input
id="username"
defaultValue="@peduarte"
className="col-span-3"
/>
</div>
</div>
<DialogFooter>
Expand Down

0 comments on commit 08b0ab5

Please sign in to comment.