Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Ripple memory leak

未关闭
#4,315 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
javascript
领域
frontend, mobile

调研方向

在 Android/Web 上的 Framework7 v7 中,使用带有按钮或其他 ripple 元素的 badge 重现该问题,然后检查浏览器的 Memory 快照,确认点击后是否存在 detached elements。检查 touchRippleElements 和 touchRippleInsetElements 配置以及 ripple 效果的行为;当点击不再保留 detached elements 或产生报告中的 memory leak,并且禁用 ripple 不会产生错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

  • 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

主要语言
JavaScript
星标
18.8k
派生
3.2k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

framework7io/framework7 的其他 Issue

查看 framework7io/framework7 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。