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

Created on 17 October 2022, almost 3 years ago
Updated 15 November 2023, almost 2 years 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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024