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

1

1 Answer 1

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')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.