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

Refresh Page with popup present has gray background

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

还没有人认领这个 Issue。

评估

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

调研方向

首先,在打开使用默认 backdrop 的弹窗时复现该问题,然后调用 router.refreshPage() 并观察页面 backdrop。跟踪弹窗和 router refresh 的入口点,以确定刷新后灰色背景仍然存在的原因。当刷新后的页面干净,并且对于模态大小的布局,弹窗行为仍然正确时,即表示完成。

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

描述

  • Framework7 version: 8.3
  • Platform and Target: any but I'm using firefox and chrome for this project
  • Live Link or CodeSandbox: PREFERABLY (IF YOU WANT YOUR ISSUE TO BE RESOLVED ASAP). You can start from forking the following CodeSandbox template: CodeSandbox

I can provide a sandbox if you need it. Let me know.

Describe the bug

router refresh page works but if you have a popup displaying with gray background enabled (default), the parent page displays with the gray background.

To Reproduce

Any page with an included popup and default options. Open the popup and then issue a router.refreshPage() (could use a button but in my case it was driven from an event).

Expected behavior

A clean refresh of the page should occur.

Actual Behavior

Page is displayed with grayed background. Clicking the page will turn it off.

Screenshots
Additional context

I was able to resolve this by adding data-backdrop="false" to the popup definition. This works for me because the display format always shows the popup in full screen and graying the background is not visible. But for larger screen formats where the popup looks like a modal dialog box, this solution would not be adequate. It seems a refresh should refresh the page regardless of state.

主要语言
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 摘要。