Skip to content

Commit

Permalink
Bring changes from #55134 to the mobile code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Nov 24, 2023
1 parent fce345d commit a715459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ const applyWithDispatch = withDispatch( ( dispatch, ownProps, registry ) => {
}

moveFirstItemUp( rootClientId );
} else {
removeBlock( clientId );
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function RichTextWrapper(
// an intentional user interaction distinguishing between Backspace and
// Delete to remove the empty field, but also to avoid merge & remove
// causing destruction of two fields (merge, then removed merged).
if ( onRemove && isEmpty( value ) && isReverse ) {
else if ( onRemove && isEmpty( value ) && isReverse ) {
onRemove( ! isReverse );
}
},
Expand Down

0 comments on commit a715459

Please sign in to comment.