Skip to content

Remove event listeners on destroy #3

Open

Description

@EinLinuus

Event listeners added on grid creation are not removed when the grid is destroyed.

gridwave/gridwave.js

Lines 177 to 190 in ddb0865

destroy() {
this.container.style.position = "";
this.container.style.height = "";
this.getItems().forEach(item => {
item.style.position = "";
item.style.width = "";
item.style.left = "";
item.style.top = "";
item.removeAttribute("data-gridwave-status");
item.removeAttribute("aria-hidden");
});
// TODO: Remove event listeners
}

Activity

  1. added
    enhancement
    on Apr 3, 2025
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions