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

Cannot select the texts in the modal #148

Closed
ayaka14732 opened this issue Jan 23, 2021 · 4 comments
Closed

Cannot select the texts in the modal #148

ayaka14732 opened this issue Jan 23, 2021 · 4 comments

Comments

@ayaka14732
Copy link

I would like to create a modal with the texts in it selectable and copyable for users.

@emmanuelballery
Copy link

Hi @ayaka14732!

There is a CSS rule :

.tingle-modal {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

Change its value for :

.tingle-modal {
  -ms-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

@ayaka14732
Copy link
Author

Thank you, it works!

@robinparisi
Copy link
Owner

This was introduce with this commit: 05d9b93

By removing this, you will face problems like #96 and #98.

I'm starting to think that the JS solution would be better, as described here: #98 (comment)

@robinparisi robinparisi reopened this Jan 25, 2021
@emmanuelballery
Copy link

Lucky me! I've never encounter neither #96 nor #98 nor I have heard of it from my clients (on multiple platforms/os/browsers).

I'll add the beforeOpen snippet from #98 (comment) to be sure in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants