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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 - textarea - In Safari/Firefox the highlighting of extra characters is working wrong #7328

Closed
3 of 9 tasks
goodday21 opened this issue Apr 25, 2024 · 0 comments 路 Fixed by #7335
Closed
3 of 9 tasks
Assignees
Labels
bug Something isn't working

Comments

@goodday21
Copy link

goodday21 commented Apr 25, 2024

Playground Link

No response

Description

https://taiga-ui.tcsbank.ru/components/textarea#extra-chars-highlight

Safari 17.3.1, Firefox 125.0.2

When my text has a URL with hyphens in it, the extra symbols are highlighted with some offset. You can use the following example:
Lorem Ipsum is simply dummy text of the printing and typesetting industry. https://my-site.abc.qwertyuiop.com/group1/group2/3921234

When you paste it to the textarea, the highlighting is displayed with offset. However if you remove the hyphen from the URL in the text, the problem's gone.

The possible solution is explicitly set some word-break, e.g.
style="word-break: break-word"

For any details, questions, please ping me in the TiMe, d.yuferev

Angular version

No response

Taiga UI version

3.76.0

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • macOS
  • Windows
  • Linux
  • iOS
  • Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants