You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.