1

ReactJS application is not allowing to find the element inside shadow-root.

I could able to access the element using /deep/ in my AngularJS application but This is not working with React application.

enter image description here

We are able to find the elements till $("#root .px-app-nav") this point

dileep keeppalli
  • 129
  • 1
  • 2
  • 12

1 Answers1

1

I Found the solution. If you have any shadow-root then use elementPath.shadowRoot.querySelector(element).

$('#root px-app-nave').shadowRoot.querySelector('.app-nav')

dileep keeppalli
  • 129
  • 1
  • 2
  • 12