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

145
Visualizações
Cannot find React component in DOM after render

I'm working in a 3rd party app that was written in React & Angular (I do not have access to the React source code), and I want to add a click handler to a specific element in a popup menu. By tracing the click, I was able to see that the node's ID is 'div#sendemail285737238350' but when I issue document.querySelectorAll("[id^=send]") in the console, the NodeList is empty. It also has an "ariaLabel" of " Send an Email" but $("[ariaLabel=' Send an Email']", window); also returns an empty list.

Of course, the DOM manipulation may happen when the popup menu is clicked, so I deferred both DOM searches till after the top-level element was clicked. I also have the React dev tools installed and the menu item is not listed in the components list.

Is there any way to grab this element and piggy-back a click handler onto it? Seems like there should be - the browser can render it, so why can I not get to 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