Browse Source

dashboard: Fix removing resize event listener, fixes #1031.

Renée Kooi 6 years ago
parent
commit
0bb0b87edc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@uppy/dashboard/src/index.js

+ 1 - 1
packages/@uppy/dashboard/src/index.js

@@ -455,7 +455,7 @@ module.exports = class Dashboard extends Plugin {
     }
 
     this.removeDragDropListener()
-    window.removeEventListener('resize', this.updateDashboardElWidth)
+    window.removeEventListener('resize', this.throttledUpdateDashboardElWidth)
     window.removeEventListener('popstate', this.handlePopState, false)
     this.uppy.off('plugin-remove', this.removeTarget)
     this.uppy.off('file-added', (ev) => this.toggleAddFilesPanel(false))