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

186
Views
Unintended ion-textarea focus on ion-modal backdrop click, native keyboard showing for a short time

I've been working on an app that opens a modal with a few buttons and an ion-textarea. After clicking the backdrop of the modal, the textarea would focus for a short period of time and open the native keyboard of the device, which is unintended. After looking on StackOverflow and the ionic framework forum, I didn't find a fix for this bug so I tried fixing it myself.

Eventually, I figured out that adding an ion-input to the page and hiding it from the user, prevents the modal from focussing on the textarea on modal dismiss.

This might not be the most clean fix, but it sure beats the user from seeing the keyboard for a short time when he does not click the ion-textarea element.

HTML: <ion-input class="keyboard-focus-bugfix"></ion-input>

SCSS:

.keyboard-focus-bugfix {
  display: none;
}
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!