-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
RichText: remove __unstableOnSplitMiddle #54183
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
|
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
multiline
even though it's deprecated, (2) are usingonSplit
to allow block splitting on Enter/paste (uncommon for non core blocks) and (3) use the unstable__unstableOnSplitMiddle
prop. 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