Skip to content

bug: "optsTest" event listener memory leak #30539

Closed

Description

@tomherni

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

There is a memory leak in the following file: core/src/utils/gesture/listener.ts

An "optsTest" event listener is added in a try/catch, and when successful, this event listener is never removed.

Expected Behavior

Passive event listeners have excellent browser support. My suggestion is to remove this check altogether. Otherwise, just remove the event listener after adding it.

Activity

  1. added
    needs: investigationThis issue is waiting on more investigation from the engineering team.
    and removed on Jul 11, 2025
  2. added theissue type on Aug 17, 2026
  3. removed
    needs: investigationThis issue is waiting on more investigation from the engineering team.
    on Aug 17, 2026
  4. ShaneK commented on Aug 18, 2026

    @ShaneK
    Member

    Thanks for reporting this issue! The fix for this has been merged into main and will go out with our next deploy!

  5. added a commit that references this issue on Aug 18, 2026
    c689000
  6. ionitron-bot commented on Sep 17, 2026

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  7. locked and limited conversation to collaborators on Sep 17, 2026
  8. added a commit that references this issue on Oct 3, 2026
    e40fbef
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

    Fields

    Stage

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions