Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
TextField acepta solo una letra y pierde el foco después de cada letra

Tengo un componente de inicio de sesión como este

 const CssTextField = styled(TextField)({ "& label.Mui-focused": { color: "#71716A", }, "& .MuiInput-underline:after": { borderBottomColor: "#71716A", }, "& .MuiOutlinedInput-root": { "&.Mui-focused fieldset": { borderColor: "#71716A", }, },}); const [form, setForm] = useState({ name: "", password: ""}); const handleChange = (e) => { e.preventDefault(); setForm({ ...form, [e.target.name]: e.target.value });};

y devolver esto

 <div className="login-container"> <h3> What is your name?</h3> <FormControl> <Box sx={{ display: "flex", alignItems: "flex-end" }}> <AccountCircle sx={{ color: "action.active", mr: 1, my: 0.5 }} /> <CssTextField variant="standard" fullWidth id="name" label="Name" name="name" onChange={(e) => handleChange(e)} value={form.name} /> </Box> </FormControl> </div>

Incluso tengo el handleChange y la versión anterior del material Ui funciona bien. por favor ayúdame gracias

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!