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

123
Views
¿Por qué el elemento Lista solo se selecciona cuando se hace clic dos veces?

Estoy creando una aplicación React y usando la biblioteca de forma final. Estoy representando un componente de selección, pero al seleccionar un elemento no se selecciona. Al seleccionar nuevamente, solo se selecciona. No estoy seguro de por qué no se cambia el estado del componente seleccionado. ¿Alguien podría verificar y ayudar?

Aquí está el enlace del código sandbox: https://codesandbox.io/s/broken-sunset-9ogwc8?file=/src/Components/Actors.jsx

Saludos.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

En su NativeSelectField.jsx , cambie el controlador onChange como se muestra a continuación:

 <NativeSelect ... ... onChange={(event) => { input.onChange(event.target.value); }} ... ... />

Demostración de trabajo

Editar unruffled-sara-hs1o3o

about 4 years ago · Santiago Gelvez Report
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!