Skip to content

Commit

Permalink
Fix: Mouseup event was not being removed from input element for sea…
Browse files Browse the repository at this point in the history
…rch, resulting in a memory leak

https://datatables.net/forums/discussion/76200
  • Loading branch information
AllanJard committed May 16, 2023
1 parent 0196391 commit 7050f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/core.filter.js
Expand Up @@ -63,7 +63,7 @@ function _fnFeatureHtmlFilter ( settings )
_fnThrottle( searchFn, searchDelay ) :
searchFn
)
.on( 'mouseup', function(e) {
.on( 'mouseup.DT', function(e) {
// Edge fix! Edge 17 does not trigger anything other than mouse events when clicking
// on the clear icon (Edge bug 17584515). This is safe in other browsers as `searchFn`
// checks the value to see if it has changed. In other browsers it won't have.
Expand Down

0 comments on commit 7050f36

Please sign in to comment.