input text auto selects text on focus
Unanswered
Common Moorhen posted this in #help-forum
Common MoorhenOP
when i focus an input, it selects the current text as soon as i write some characters
im using shadcn ui dialog component
im using shadcn ui dialog component
return (
<Dialog>
<DialogTrigger asChild>
<button className="w-full text-start">Edit</button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Edit tag</DialogTitle>
<DialogDescription>Edit tag information</DialogDescription>
<Label htmlFor="name">Name</Label>
<input
placeholder="Birthday"
id="name"
type="text"
/>
</DialogHeader>
</DialogContent>
</Dialog>
);