-
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
Hide the columns count control on empty columns block #16476
Conversation
Fixes #16343 |
@@ -170,9 +172,7 @@ export function ColumnsEdit( { | |||
setForceUseTemplate( true ); | |||
} } | |||
__experimentalAllowTemplateOptionSkip | |||
// setting the template to null when the inner blocks |
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.
Seems like this comment is still valid?
return ( | ||
<> | ||
{ template && ( | ||
{ ! showTemplateSelector && ( |
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.
Alternatively, I wonder what it is about choosing columns that causes the issue in the first place. If someone wanted to skip the layout selection and just start setting columns (assuming of an equal width), why prevent them?
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.
yeah I'm not sure what. I decided to remove the selector not only because of the bug because based on the previous check here. I assumed that removing the inspector controls was an intentional behavior.
Small regression introduced by #16129
closes #16343
When the columns block is in the "setup state", the columns count range control should be hidden.