ACF Blocks V3 - Saving in preview mode doesn't work reliably when you type fast within the input fields or manipulate text via keyboard shortcuts
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
プレビューモードで wysiwyg フィールドを含む ACF Blocks V3 ブロックを使い、すばやく入力して alt+backspace または cmd+backspace を使用することで、問題を再現します。入力内容をライブプレビューおよび保存済みの投稿と比較します。高速な編集とキーボードショートカットの同期が維持され、保存時に最後に入力した内容が保持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Added a video of the bug below.
I am using the latest version of ACF Blocks V3 with version ACF PRO 6.6.1.
When you type within an input field (e.g. wysiwyg) in preview mode, the live preview is lagging behind when you type fast or use a keyboard shortcuts like copy & paste, alt+backspace or cmd+backspace.
The live preview can't keep up.
When the live preview is out of sync with what you just typed, it will wrongly save what is inside the preview mode, inside of the up to date content of your input field.
I've added a video of the bug below.
To Reproduce
Steps to reproduce the behavior:
- Create an ACF block with a wysiwyg text field
- Use the block in preview mode
- Quickly type a sentence or a couple of words, quickly do a deletion of some words via alt+backspace or cmd+backspace
- You will see the text in preview being out of sync with the text in the wysiwyg area
- When you save the page, only the text from the preview will be saved. Not what you actually wrote in the wysiwyg.
Maybe the bug is also occurs on other input fields such as plain text or textarea, but I haven't tested these yet.
Expected behavior
The preview mode should be an accurate representation of what you type. Even if you type fast, or use keyboard shortcuts to manipulate text. When you're done typing, it should do a refresh after a couple of ms.
When saving an edited post, the saved post should always be what you just entered in a text or input field.
Otherwise editors may save posts or pages, and end up with broken text when they view the website.
Screenshots or Video
Demo of the bug:
https://github.com/user-attachments/assets/f52e9c74-9c04-4dc0-9e65-9d8ab337abc6
Version Information:
- WordPress 6.8.3
- PHP 8.2.27
- ACF PRO 6.6.1
- Browser (Chromium Engine Version 141.0.7390.108)
- 主要言語
- PHP
- スター
- 947
- フォーク
- 198
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AdvancedCustomFields/acf のほかの issue
-
PHP 8.5: "Using null as an array offset" deprecation in ACF_Data::is() when rendering a block with empty data (local-meta.php is_request)対応中かも @faisalahammad が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AdvancedCustomFields/acf#1044 ·
-
is_preview was called incorrectly notice on every early get_field() since 6.8.10 (acf_revisions::acf_validate_post_id)対応中かも @faisalahammad が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AdvancedCustomFields/acf#1041 · コメント 1 件 ·
-
True / False ACF control bug on RTL layouts対応中かも @elicohenator が 24 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
AdvancedCustomFields/acf#1038 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AdvancedCustomFields/acf#1034 · コメント 3 件 ·
-
Bug: class-acf-field-icon_picker.php calls wp_get_attachment_image_url() with string Dashicon slug, causing fatal TypeError on PHP 8+対応中かも @antwonw が 36 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
AdvancedCustomFields/acf#1032 · コメント 1 件 ·
AdvancedCustomFields/acf の issue をすべて見る
似ている issue
-
feature request
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Automattic/blocks-engine#2803 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hestiacp/hestiacp#5798 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug Component: HTTP Component: Telemetry
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
woocommerce/woocommerce-google-analytics-integration#699 ·
メンテナーはふだん 1 日以内に返信