Skip to content

[Bug]: Error when clicking "Next" in Ctrl+F to search within notes #10867

@dpy22

Description

@dpy22

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Windows

Version

v1.6.5

Bug Description

Image In one of the notes, use Ctrl+F to search for keywords, then click "Next" to select the next result. When you need to jump to a result below a certain height on the page, it will start selecting from the beginning.

Steps To Reproduce

  1. Enter the notes
  2. Create a new note and write some content (it must be long enough to fill the entire screen, preferably distributing the search keywords as widely as possible)
  3. Use Ctrl+F to search for keywords and click next
  4. When jumping to the nth one, the selection automatically jumps to the first

Expected Behavior

Should not jump back to the first

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGCategorizes issue or PR as related to a bugUI/UX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions