Skip to content

Search (CTRL+F) Doesn't Auto-Update After Content Changes #3367

Open
@Jatin24062005

Description

@Jatin24062005

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

The search results do not update when new text is added.
The search overlay remains stuck on the initial results, even if content changes.

p5.js.Web.Editor.-.Google.Chrome.2025-03-06.17-17-09.mp4

Expected Behavior

When text matching the search query is added or removed, the search results should automatically update.
The search overlay should refresh dynamically, without requiring the user to manually restart the search.

Steps to reproduce

  1. Open https://editor.p5js.org/ and Add hello (any text ) 4 times
  2. Observe the search results count (0/4 if "hello" appears 4 times).
  3. Add more instances of the searched word (hello) in the editor.
  4. Notice that the search result count and highlighting remain the same, not updating dynamically.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions