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

Strange <List> Behavior when using preact-router

未关闭
#40 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

在启用 MDL CSS 的情况下,在链接的 staging 应用中重现导航序列,包括浏览器后退导航。检查 DOM 中受影响的列表项和 List Primary Content,然后将结果与移除 CSS 后的结果进行比较,并考虑报告中指出的 preact-router 兼容性。完成的标准是:消失的元素得到了前后一致的解释,并且兼容性 bug 已修复或被明确隔离。

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

描述

Replication Instructions:

  1. You can see this issue in a staging version of my app. Go here, and click the first item on this list, when it appears.
  2. Go back using your browser back button
  3. Attempt to click on the navigation icon again
  4. It disappears and will only reappear when you hover over it

Some other strange behaviors include: entire list items becoming invisible after repeated back and forth navigation and List Primary Content disappearing.

Notice that I am using the word disappearing. This is because all the elements are still present in the DOM, as you can see from the inspector. But they are invisible. I've ruled this down to a compatibility issue between this module and the MDL CSS, as the issue is not present when the CSS is removed

Sidenote: This may be more relevant on the preact-router repo, ask me if you want to move it

主要语言
JavaScript
星标
192
派生
20
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

developit/preact-mdl 的其他 Issue

查看 developit/preact-mdl 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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