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
What might block focus event on click?

I have an Angular component based on contenteditable="true" div. When I use the component directly in the app it works fine - on click caret displays there, div is focused and I can type some text.

The problem is when I use the component inside external lib surface (inside <jsplumb-surface></jsplumb-surface>). Somehow focus is blocked on the click. It's possible to focus on the div by executing div.focus() method (handling click event), but the problem is that caret position is then lost. The tabindex attribute is set and focus on tab click also works.

I assume that jsPlumb somehow blocks the focus pm click event but I don't have any idea how. What could be the potential cause and how can I handle it?

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!