Skip to content

Fix window keydown listener leak in EventForm #41

@thedhanawada

Description

@thedhanawada

Bug

EventForm.js (line ~308-316) adds a window keydown listener but the reference is not tracked by the cleanup() method. When the form is destroyed and recreated, listeners accumulate.

Fix

Store the listener reference and remove it in cleanup() / disconnectedCallback().

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:0-foundationImmediate fixes and test infrastructurepriority:highImportant for next milestonetype:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions