-
Notifications
You must be signed in to change notification settings - Fork 4.7k
RichText: remove __unstableOnSplitMiddle #54183
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
Conversation
|
Size Change: -52 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in b6dc284. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6083019724
|
youknowriad
left a comment
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.
Agreed, this is very unlikely to impact anything.
What?
This prop was splitting behaviour with multiline rich text. It seems safe to remove:
So this would only affect blocks that (1) are still using
multilineeven though it's deprecated, (2) are usingonSplitto allow block splitting on Enter/paste (uncommon for non core blocks) and (3) use the unstable__unstableOnSplitMiddleprop. We only ever used to this to improve writing flow for quote and list.Why?
Reduce the maintenance cost. I'm refactoring split behaviour and it's a pain to keep supporting it.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast