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
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il problema con un blocco ACF Blocks V3 contenente un campo wysiwyg in modalità anteprima, digitando rapidamente e usando alt+backspace o cmd+backspace. Confronta l’input con l’anteprima in tempo reale e con l’articolo salvato; il lavoro è completato quando le modifiche rapide e le scorciatoie da tastiera rimangono sincronizzate e il salvataggio conserva il contenuto inserito più di recente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- PHP
- Stelle
- 946
- Fork
- 197
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AdvancedCustomFields/acf
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AdvancedCustomFields/acf#1041 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
AdvancedCustomFields/acf#1038 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AdvancedCustomFields/acf#1034 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
AdvancedCustomFields/acf#1032 · 1 commento ·
-
Drop trap, acf_after_titleAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AdvancedCustomFields/acf#1029 · 1 commento ·
Tutte le issue di AdvancedCustomFields/acf
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Yoast/wordpress-seo#23658 ·
I maintainer di solito rispondono entro 3 giorni
-
fixed
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
firefly-iii/firefly-iii#12934 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno