-
Notifications
You must be signed in to change notification settings - Fork 2
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
Columns broken in 5.4 #5
Comments
@nickhamze I can reproduce this issue in WP 5.3.2 as well. P.S. Can you point me a WP version where columns work, so I can see what changed in core block? |
Weird I'm using it here and the columns work fine: But when I try to create a page on the the same site it doesn't work. I think it means that it broke from 1.0.0 to 1.0.1 as that first list was created with 1.0.0. Maybe this commit broke it: |
You're right. The following condition will always be true for if ( typeof props.className === 'undefined' || ! props.className ) {
return props;
} Unfortunately, my solution also triggers block validation error as mentioned in the #1 issue. I'm not able to find anything in Gutenberg repo that might help us solve the block validation issue. |
@Mamaduka What if we created a column style? Would that let us add classes without triggering validation errors? |
@nickhamze Keeping an eye on this issue and hopefully some better option will be part of the core. Currently, we have to provide this bad experience for the users. |
@Mamaduka could we add the classes here somehow. We did that with guidepost in the beginning. |
@nickhamze pushed the fix, can you test again and also confirm that issue from #1 doesn't happen as well? |
@Mamaduka yeah works well. I screwed up and did the 1.0.1 manually so the repo still says we're on 1.0.0 don't forget to bump it to 1.0.2 before pushing the new version. |
Changes are deployed to WP.org. |
Something changed and the columns look fine on the backend but not on the frontend. The classes aren't present at all on the frontend.
The text was updated successfully, but these errors were encountered: