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

143
Views
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
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!