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

ACF Block v3 expanded editor fields disappear when viewport is resized to 782px or below

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

还没有人认领这个 Issue。

评估

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

调研方向

在区块编辑器中使用通过 acf_register_block_type() 或 block.json 注册的 ACF Block v3 重现该问题,然后在调整大小至 782px 或更小时检查 .acf-modal-block-form-container。调整大小后,展开的编辑器字段仍保持可见且可用,无需关闭并重新打开编辑器,即表示完成。

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

描述

Describe the bug
With WordPress 7.1 and ACF PRO 6.8.9, the fields in an ACF Block v3 expanded editor do not display when the browser viewport is 782px wide or below. The modal header remains visible, but .acf-modal-block-form-container becomes empty with a height of 0.

To Reproduce
Steps to reproduce the behavior:

  1. Using a classic or block WordPress theme with WordPress 7.1 and ACF PRO 6.8.9, register an ACF Block v3 using either acf_register_block_type() or the block.json method.
  2. Open the block editor and add the ACF block.
  3. Open the block’s expanded editor.
  4. Resize the browser window to 782px wide or below.
  5. Observe that the editor fields disappear while the modal header remains visible.
  6. Close and reopen the expanded editor and observe that the fields reappear.

Expected behavior
The expanded editor fields should remain visible and functional when the browser viewport is resized to 782px wide or below.

Screenshots or Video
Image

Version Information:

  • WordPress 7.1
  • ACF Pro 6.8.9
  • PHP 8.4
  • Chrome 151.0.7922.174 and Firefox 154.0.1
  • macOS 15.7.3
主要语言
PHP
星标
946
派生
197
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

AdvancedCustomFields/acf 的其他 Issue

查看 AdvancedCustomFields/acf 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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