Prerequisites
Ionic Framework Version
Current Behavior
When an element is removed from the DOM, the native input element is not freed because the compositionend event listener has not been removed. This is due to a typo in the code.
Expected Behavior
The proper event listener should be removed.
Steps to Reproduce
Add an element to the document
Remove the element
Take a heap snapshot and inspect the heap. You will find a "Detached HTMLInputElement". Inspecting it's retainers you'll see an event listener.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.6
Utility:
cordova-res : not installed globally
native-run : 1.7.1
System:
NodeJS : v16.14.2
npm : 8.7.0
OS : macOS
Additional Information
No response
Prerequisites
Ionic Framework Version
Current Behavior
When an element is removed from the DOM, the native input element is not freed because the
compositionendevent listener has not been removed. This is due to a typo in the code.Expected Behavior
The proper event listener should be removed.
Steps to Reproduce
Add an element to the document
Remove the element
Take a heap snapshot and inspect the heap. You will find a "Detached HTMLInputElement". Inspecting it's retainers you'll see an event listener.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.6
Utility:
cordova-res : not installed globally
native-run : 1.7.1
System:
NodeJS : v16.14.2
npm : 8.7.0
OS : macOS
Additional Information
No response