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

91
Views
Cómo verificar si el usuario ha presionado el botón Listo en el iPhone usando Reactjs

Tengo una aplicación creada con Reactjs y en la aplicación, tengo un formulario cuando un usuario presiona el botón Listo o Regresar en el dispositivo iOs . Quiero enviar esa función. Como lo intenté, pero solo funciona cuando el usuario presiona el botón Regresar.

 function Counter() { const [otp,setOTp]=useState('') const handleSubmit = (e) => { e.preventDefault(); // conform alert var r = window.confirm("Are you sure you want to submit?"); if (r === true) { alert("Submitted"); } else { alert("Cancelled"); } } return ( <div> <form onSubmit={handleSubmit}> <input type="text" placeholder="Enter OTP" value={otp} onChange={(e)=>setOTp(e.target.value)} /> <button type="submit">Submit</button> </form> </div>

Imagen

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!