robust-apricot
robust-apricot12mo ago

how to remove default values

rewriting my own login.tsx, i have a code like this <TextField {...register("password", { required: true, })} id="password" margin="normal" fullWidth name="password" label={t("pages.login.fields.password", "Password")} helperText={errors?.password?.message} error={!!errors.password} type="password" value={null as any} placeholder="●●●●●●●●" sx={{ mb: 0, }} /> I would remove the default value from the input. How can I do this?
1 Reply
wise-white
wise-white12mo ago
Hello, @dannywhiteagile there seems to be no problem with defaultValue here. Can you send us a codesandbox w here we can reproduce this?