Skip to content

Commit

Permalink
fix: Memory leak if Calendar is selectable jquense#1940 (jquense#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
mareolan committed May 25, 2021
1 parent caf820b commit a26e933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Selection {
'drop',
this._dropFromOutsideListener
)
this._onDragOverfromOutisde = addEventListener(
this._removeDragOverFromOutsideListener = addEventListener(
'dragover',
this._dragOverFromOutsideListener
)
Expand Down Expand Up @@ -108,6 +108,7 @@ class Selection {
this._removeKeyUpListener && this._removeKeyUpListener()
this._removeKeyDownListener && this._removeKeyDownListener()
this._removeDropFromOutsideListener && this._removeDropFromOutsideListener()
this._removeDragOverFromOutsideListener && this._removeDragOverFromOutsideListener()
}

isSelected(node) {
Expand Down

0 comments on commit a26e933

Please sign in to comment.