6.6: changed behaviour on pressing Enter on a selected block #65274
Open
Description
opened on Sep 12, 2024
Description
Hi everyone!
We noticed that hitting Enter on our custom blocks inserts an empty paragraph since the 6.6.2 6.6 update. Before 6.6.2 6.6 it was inserting a copy of the same block.
We suspect that this has something to do with that fix: https://github.com/WordPress/gutenberg/pull/64992/files
The block in question: https://github.com/maxi-blocks/maxi-blocks/tree/master/src/blocks/text-maxi
Can you advise something, please? Maybe we can make some changes to revert it without rolling back to 6.5.5? Something for splitting the block, possibly?
Note: Adding support for "splitting": doesn't help.
Thanks!
Step-by-step reproduction instructions
- https://wordpress.org/plugins/maxi-blocks/
- Add a Container + Text inside a Column
- Press Enter on the Text, Column, Row.
Or check the videos below.
Screenshots, screen recording, code snippet
Before 6.6:
screencast-maxiblocks.com-2024.09.12-12_54_32.webm
On 6.6.2:
screencast-wordpress.local-2024.09.12-13_23_08.1.webm
Environment info
WordPress 6.6.2
PHP 8.3
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Activity