-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commands: Combine selectors in 'useTransformCommands' #57424
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: +23 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
tyxla
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.
Great find! 👍 Looks good and tests well.
Thanks 🚀
| selectedBlockClientIds | ||
| ); | ||
| const rootClientId = getBlockRootClientId( | ||
| Array.isArray( clientIds ) ? clientIds[ 0 ] : clientIds |
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.
getSelectedBlockClientIds() will always be an array. Nice 👍
|
Thanks for testing and review, @tyxla! |
What?
PR combines
block-editorstore selectors in theuseTransformCommandshook.Why?
Testing Instructions
transformTesting Instructions for Keyboard
Same
Screenshots or screencast