Highlighted text not working properly when the string contains white space at the end

Created on 17 October 2022, about 2 years ago
Updated 15 November 2023, about 1 year ago

Problem/Motivation

Sometimes when selecting a paragraph with white space at the end of the text the highlighted text does not work.

Steps to reproduce

1- Select a paragraph with white space at the end of it.
2- Click Add Note then Save.
3- Check the text you selected is not highlighted.

Proposed resolution

Should trim the text before passing it to window.find(text) function.

πŸ’¬ Support request
Status

Needs work

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan n.ghunaim Amman - Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I am not able to reproduce the error. Are you able to reproduce the error? Can you include a screenshot?

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
  • Status changed to Needs work about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I am concerned that trimming the string could be a problem because it is looking for the text at an offset. Trimming can effect the offset.

    trimEnd could be used. The method, trimEnd is widely support, but String should still be checked for the method.

Production build 0.71.5 2024