Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Form Reset/Submit DOM Memory Leak

Open melloware opened this issue 1 year ago • 0 comments

  • Describe the bug

Similar to this old issue: https://github.com/RobinHerbots/Inputmask/issues/1466

I am using jQuery InputMask and if I call jq.inputmask("remove"); I can see detached HTMLInputElement in memory and its because of the InputMask reset and submit events.

image

If I call jq..inputmask('remove').inputmask(maskCfg); 3 times I now see this..

image

You can see its got 3 references so the garbage collector can never clean up the Detached DOM Element.

  • OS: Windows 11
  • Browser: Chrome /Edge latest
  • Inputmask version: latest 5.0.9 rev 50

melloware avatar Mar 31 '24 14:03 melloware