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

153
Views
Al cerrar el teclado en Safari 15 en iPhone, aparece el evento window.blur

Cerrar el teclado en Safari 15 en un iPhone activa el evento window.blur. El problema es que la aplicación también debe escuchar el evento window.blur para enviar información de que el usuario ha minimizado la aplicación y cerrar el teclado provoca un falso positivo. ¿Es posible separar de alguna manera estos casos?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede usar una combinación de eventos VisibilityChange y BeforeUnload para activar cuando el usuario minimiza o navega fuera del sitio web.

 document.addEventListener("visibilitychange", (event) => { // check visibilityState if(document.visibilityState === 'visible') { //.. do stuff } else { // .. do something else } }); document.addEventListener('beforeunload', () => { // Your logic goes here });
about 4 years ago · Juan Pablo Isaza 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!