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
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
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:
- 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)
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AdvancedCustomFields/acf
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdvancedCustomFields/acf#1041 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AdvancedCustomFields/acf#1038 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdvancedCustomFields/acf#1034 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AdvancedCustomFields/acf#1032 · 1 bình luận ·
-
Drop trap, acf_after_titleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdvancedCustomFields/acf#1029 · 1 bình luận ·
Tất cả issue của AdvancedCustomFields/acf
Issue tương tự
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Feature: Kiosk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Infrastructure: actions Module: zmscitizenapi Module: zmsentities php Type: Bug unit tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
it-at-m/eappointment#3480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HttpClient
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: composer install fails — league/flysystem 1.x blocked by security advisory GHSA-cxf4-7mrp-vvprĐang mởdevops type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày