Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#982 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php, wordpress
Lĩnh vực
content, frontend

Hướng nghiên cứu

Tái hiện sự cố với một block ACF Blocks V3 chứa trường wysiwyg ở chế độ xem trước, bằng cách nhập nhanh và sử dụng alt+backspace hoặc cmd+backspace. So sánh nội dung nhập với bản xem trước trực tiếp và bài viết đã lưu; hoàn tất khi các chỉnh sửa nhanh và phím tắt vẫn được đồng bộ, đồng thời thao tác lưu giữ lại nội dung được nhập gần nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

  1. Create an ACF block with a wysiwyg text field
  2. Use the block in preview mode
  3. Quickly type a sentence or a couple of words, quickly do a deletion of some words via alt+backspace or cmd+backspace
  4. You will see the text in preview being out of sync with the text in the wysiwyg area
  5. 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)
Ngôn ngữ chính
PHP
Star
946
Fork
197
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AdvancedCustomFields/acf

Tất cả issue của AdvancedCustomFields/acf

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.