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

Text not selectable #93

Closed
chadallard opened this issue Sep 29, 2022 · 0 comments · Fixed by #217
Closed

Text not selectable #93

chadallard opened this issue Sep 29, 2022 · 0 comments · Fixed by #217
Labels
bug Something isn't working

Comments

@chadallard
Copy link

chadallard commented Sep 29, 2022

Switching from react-json-view, one thing I noticed immediately is that I could no longer select text in the JSON viewer.
It seems there are now CSS properties that block this:

-webkit-user-select:none;
user-select:none;

These appear to be inherited from MuiPaper-root class.

Workaround I have found in the meantime is to manually override the style, which shouldn't be required:

.MuiPaper-root{
-webkit-user-select:text !important;
user-select:text !important;
}

Perhaps userSelect:"text" should be added as Mui theme override.

@himself65 himself65 added the bug Something isn't working label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants