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

Fix overflowed text selection for text tool on WebKit #68

Merged
merged 2 commits into from
Oct 21, 2021

Conversation

daystram
Copy link
Contributor

On WebKit-based browsers, using .setSelectionRange(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) on input elements causes the caret to be placed at the beginning of the text -- unlike in Chrome or Gecko browsers, the caret is placed on the end of the text. This causes inputted text by text tool to be reversed.

@sonarcloud
Copy link

sonarcloud bot commented Oct 21, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@daystram daystram merged commit 0e622f4 into master Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants