Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda