Open pwkip opened 3 years ago
Hi @pwkip
Thanks for the bug report and great explanation! I've got a good idea of what the issue is, but a little confused as it is something that we fixed in an earlier version... perhaps there has been some sort of regression that our fix no longer works with.
Are you using the Gutenberg plugin, or just the latest version of WP?
Hi Elliot,
You're welcome. I do understand that good bug reports are often half the work to get them fixed, so I like to be thorough and contribute to a quick solution the best I can.
I have tested this in a fresh WP installation, that I set up for the sole purpose of testing this bug.
The bug appears both with the Gutenberg plugin enabled and disabled. I do want to point out again that this only happens if the ACF block is nested in another block (like columns, or other custom blocks that allow InnerBlocks)
Some more specs:
Do let me know if there's anything else I can do
Hi @elliotcondon and @pwkip !
I reported the same bug a few days ago as well. I have:
I think you might have fixed the bug on the parent / root level but you missed this particular use case, which is when a block containing a WYSIWYG field is inside a container block. This use case however is coming increasingly common.
My case is this:
Tested the same ACF block on a different post type that doesn't have any container blocks and on the root level, the block can be moved down with no bugs. So the cuplrit is most probably the container block and some logic behind that.
Hope this helps!
@elliotcondon Have you found anything yet that might be the cause of this?
Hi, all!
Have you still had any luck in fixing this? Notifying @elliotcondon as well as @pwkip .
Thanks!
Nope. Still waiting :)
@elliotcondon Any progress? :)
Have you had any luck yet? @elliotcondon
Spotted a strange bug with the WYSIWYG field. The field gets cleared if it is used inside a block that is inside a column if you move the block's position below another block in the same column. Switching from edit mode to view mode and back makes the text reappear. Also this bug only seems to occur when moving the block below another block. When moving the block above another block, the text remains visible.. It's easier to explain with a video:
Steps to reproduce the bug
Create an ACF group with a WYSIWYG field, and assign it to the block. (Import this ACF JSON code)
Create a post or a page
Create 2 columns
Add the testimonial block containing the WYSIWYG field to the page
Create another block inside the same column.
Change the position of the blocks. Notice that the moment the WYSIWYG block gets move below another element inside the column, the output is cleared.