Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make texts selectable in React DevTools panels #131

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

EdmondChuiHW
Copy link

@EdmondChuiHW EdmondChuiHW commented Oct 16, 2024

Summary

CDT has a global user: none. This makes texts in React DevTools, such as component names to be {un|non}-selectable. This is a divergence from the behaviour on web.

Test plan

Before

Text is not selectable:
screenshot of RDT Component panel with a non-selectable component text name

After

Text is selectable:
screenshot of RDT Component panel with a partially-selected component text name

Upstreaming plan

  • This commit should be sent as a patch to the upstream devtools-frontend repo. I've reviewed the contribution guide.
  • This commit is React Native-specific and cannot be upstreamed.

@EdmondChuiHW EdmondChuiHW merged commit 117c96a into facebookexperimental:main Oct 16, 2024
2 checks passed
@EdmondChuiHW EdmondChuiHW deleted the selectable-rdt branch October 16, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants