If images fail to load and image viewer is open, overlay is not removed from DOM when the viewer is closed
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- frontend
调研方向
在打开查看器的情况下重现图像加载失败的情形,然后检查 smartphoto.min.js:103-104 指示的关闭路径以及报告的对 null 的 style 访问。验证通过顶部的 X 关闭后会从 DOM 中移除 overlay,并且不再引发 TypeError。
由索引模型根据 Issue 内容生成。
描述
If the image is not available, and you attempt to open the image viewer, the viewer will display a progress/loading spinner. Closing the viewer using the top "X" close button, will successfully close the viewer, however there will be an invisible overlay left on top of the DOM preventing interaction with the application.
The console reveals a NPE on the attempt to close the viewer:
Uncaught (in promise) TypeError: Cannot read property 'style' of null
at smartphoto.min.js:104
at new Promise ()
at e.value (smartphoto.min.js:104)
at e.value (smartphoto.min.js:104)
at smartphoto.min.js:103
at HTMLDivElement. (smartphoto.min.js:103)
- 主要语言
- TypeScript
- 星标
- 896
- 派生
- 57
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
appleple/SmartPhoto 的其他 Issue
-
Zoom未关闭
难度 3/5 1-2 天 新手友好度 35/100
appleple/SmartPhoto#89 ·
-
Download button?未关闭
难度 3/5 1-2 天 新手友好度 40/100
appleple/SmartPhoto#88 · 1 条评论 ·
-
question
难度 3/5 1-2 天 新手友好度 25/100
appleple/SmartPhoto#80 · 2 条评论 ·
-
question
难度 2/5 1-3 小时 新手友好度 35/100
appleple/SmartPhoto#79 · 3 条评论 ·
-
question
难度 3/5 1-2 天 新手友好度 25/100
appleple/SmartPhoto#70 · 3 条评论 ·
查看 appleple/SmartPhoto 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
software-mansion/argent#1946 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
podman-desktop/podman-desktop#20216 ·
维护者通常 1 天内回复
-
[Type] Bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
omdsh-dev/DSH-better-sidebar#1205 ·
维护者通常 3 天内回复