Skip to content

Ripple memory leak #4315

Open
Open
@Paul1221

Description

@Paul1221
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions