-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix updating the block list after block removal #35721
Conversation
Size Change: +25 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎊 !
I verified that the issue is no longer present for the case of removing the first block at the root level, as well as for the case of removing the first block within another block like the group block.
Additionally, I did a quick check on the native version to confirm that couldn't be reproduced in that version either.
* Release script: Update react-native-editor version to 1.64.0 * Release script: Update with changes from 'npm run core preios' * Update Changelog * Release script: Update react-native-editor version to 1.64.1 * Release script: Update with changes from 'npm run core preios' * Fix updating the block list after block removal (#35721) * Cover block: Change dimRatio to 50 if media added and dimRatio is set to 100 (#35789) * Change opacity to 50 if media added and opacity is set to 100 to prevent background color obscuring image * Fixes cover opacity bug on mobile (#35792) Co-authored-by: Glen Davies <glen.davies@a8c.com> Co-authored-by: Antonis Lilis <antonis.lilis@automattic.com> * Mobile - Update Changelog Co-authored-by: Riad Benguella <benguella@gmail.com> Co-authored-by: Glen Davies <glendaviesnz@users.noreply.github.com> Co-authored-by: Glen Davies <glen.davies@a8c.com> Co-authored-by: Antonis Lilis <antonis.lilis@automattic.com>
closes #35624
The refactoring in #34241 introduce a small bug that happens when the "REPLACE_BLOCKS" action is triggered with an empty block list causing the removal of the replaced block. In this situation, the block list was not being updated properly in the state.
Testing instructions