-
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
Stop checking for active formats when doing delete. #22446
Conversation
On the web this checking the active formats makes sense because you have a mode where you are inside a selection ("active selection"). That doesn't happen on mobile so having a selection active shouldn't block the deletion and merge.
@@ -334,7 +333,6 @@ export class RichText extends Component { | |||
if ( | |||
! onDelete || | |||
! isCollapsed( value ) || | |||
activeFormats.length || |
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.
On the web this checking the active formats makes sense because you
have a mode where you are inside a selection ("active selection").
That doesn't happen on mobile so having a selection active shouldn't
block the deletion and merge.
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.
Your explanation was helpful for understanding the fix. Nice one!
Size Change: 0 B Total Size: 1.11 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.
Tested in the example app on Android and iOS. Didn't see any side effects and it looks like it solves wordpress-mobile/gutenberg-mobile#1873 . Well done! 🎉
@@ -334,7 +333,6 @@ export class RichText extends Component { | |||
if ( | |||
! onDelete || | |||
! isCollapsed( value ) || | |||
activeFormats.length || |
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.
Your explanation was helpful for understanding the fix. Nice one!
On the web this checking the active formats makes sense because you
have a mode where you are inside a selection ("active selection").
That doesn't happen on mobile so having a selection active shouldn't
block the deletion and merge.
Description
How has this been tested?
This can be tested using this GB-mobile PR.
Screenshots
Types of changes
Bugfix for this issue: wordpress-mobile/gutenberg-mobile#1873
Checklist: