-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Open
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.status: waiting for authorIssue with insufficient information.Issue with insufficient information.
Description
Steps to reproduce
<TextField
label="First Name"
fullWidth
size="small"
error={!!errors.firstName}
helperText={errors.firstName?.message}
{...register("firstName", {
required: "First Name is required",
maxLength: {
value: 30,
message: "First Name must not exceed 30 characters",
},
})}
/>
Current behavior
The above code for a text filed to accept user input and save into database.
No issues when we enter data and save to db.
But when we populate the record to the filed from database, the label name is not clearing and both label name and user input appearing in text box.

Expected behavior
No response
Context
No response
Your environment
Search keywords: Text Field - label not clearing when populate data
Metadata
Metadata
Assignees
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.status: waiting for authorIssue with insufficient information.Issue with insufficient information.