framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Ripple memory leak

Open Paul1221 opened this issue 11 months ago • 0 comments

  • Framework7 version: 7
  • Platform and Target: Android / Web

Describe the bug

Ripple effect causes affected elements to remain detached. Also creates an detached div for the animation. It creates an memory leak of 1kb per click

To Reproduce

Steps to reproduce the behavior:

  1. Create a bage that contains buttons(or any ripple element)
  2. Click on the elements
  3. Go to developer console -> Memory
  4. Create a snapshot and look for detached elements

Expected behavior

Not creating a memory leak on click

Additional context

I am now trying to remove the ripple effect by this:

app = new Framework7({ ... touch: { touchRippleElements: "", touchRippleInsetElements: "" } });

It removes the memory leak, but causes an console error. Its not a blocker but still, i think it should not be an error but a warning

Paul1221 avatar Apr 09 '25 07:04 Paul1221