Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #32983
Closed
Open
Issue created Feb 04, 2021 by Administrator@rootContributor

dropdown.dispose() does not remove event listeners

Created by: jirikanda

Dropdown has a dispose() function which contains:

super.dispose()
EventHandler.off(this._element, EVENT_KEY)
...

Unfortunatelly, in the base class BaseComponent there is the dispose() function which contains

Data.removeData(this._element, this.constructor.DATA_KEY)
this._element = null

When dropdown dispose() function is called

  1. this._element is set to null in the super.dispose()
  2. EventHandler.off function(...) cannot remove event listener because the this._element is null.
Assignee
Assign to
Time tracking