-
Notifications
You must be signed in to change notification settings - Fork 801
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
Slideshow Block: Block breaks in Editor when set to Full Width #17616
Comments
Another report in 3284766-hc. Worth noting that it breaks the remaining content in the editor as well. Changing the slideshow to wide width returns things to normal so the page can be edited. |
Another report in 25186634-hc. |
Another report in 25193575-hc |
👋 I've bisected this error to this PR WordPress/gutenberg#25884 which was part of the 9.2 release Pinging @jeyip as he may have some more knowledge what happened there that affected this. |
cc/ @Automattic/cylon 🙂 |
Apologize, I commented while doing other things and somehow missed the second half of the PR description. 🤦 I didn't even realize it was importing an external library, and looking at One extremely suspicious detail is that the block width seems to always be |
Another report in 4752856-hc |
Another report in 21476315-hc |
And another one here 3439767-zen |
Another report here 24776915-hc |
Another in 25208641-hc |
Another report of a user not able to edit their Pages because they all have Slideshow Blocks on them: #20607867-hc |
Another report: 8848011-hc |
I've opened a PR in Gutenberg that seems to fix this issue: WordPress/gutenberg#26552. @Automattic/good-mountain As mentioned elsewhere, we might need to bring it into JP immediately, rather than wait for the PR to get approved and included in the next Gutenberg release. |
Thanks @Copons ! I agree, I don't think this can wait for a Gutenberg release, it completely breaks the editor. |
Thanks a ton, @Copons! I'll file a JP PR for now. |
Had another report in #25238205-HC |
r216021-wpcom Edit: This should fix the issue on WordPress.com. |
@ockham can you confirm if this also fixes AT sites? I just chatted on 23423694-hc and the issue persists unless I disable Gutenberg. |
It will, but only once a Jetpack version that includes this fix is released (or a Gutenberg version that includes WordPress/gutenberg#26552 is released) and installed on Atomic. The next JP release is scheduled for November 10 -- if we need a fix for AT earlier, we'll have to ship it through a different vector (wpcomsh) 🤔 |
An update from Gutenberg side: we are pondering if reverting the change (WordPress/gutenberg#25884) that introduced this issue. The workaround used here (#17645) would NOT be affected by a revert, nor would it cause any regressions, as the I'll keep y'all updated with whatever we'll end up doing! |
Another 23174703-hc |
Another 25305689-hc |
Well, I totally forgot to keep y'all updated as promised, but just as a heads up, this should be fixed everywhere for a few weeks now.
so it should cover any possible site type. |
Steps to reproduce the issue
What I expected
The block to work.
What happened instead
The block disappears; only the left/right slideshow controls remain
Screenshots
Notes
The bug is not present when the Gutenberg plugin (v9.2.2) isn't enabled. This suggests that it might be related to the recent
block-supports
rewrite (as issues withblock-supports
tend to affect blocks that are set to full-width alignment).Note the inline styling in the browser console in the above screencast: When changing the block layout to 'Full Width', two numeric values (for the
width
andtransform
attributes) are assinged weird floating point numbers that probably don't work in CSS 😬AFAIK, that inline styling is provided by the Swiper library that we use to implement the Slideshow block, and added to the HTML element with the
swiper-wrapper
class. I suspect that the lib is attempting to read some dimensions from the block but gets them wrong and thus ends up settings those weird values.Also note that the block toolbar isn't aligned with the block (rather than sitting right on top, it is the very left of the editor; it's more visible on a wide screen). This could be related to the same issue -- some dimensions being incorrectly computed.
This bug also affects WP.com. It has been discussed here: p1603739210304100-slack-C015AL3QL7M
cc/ @TheSteveK @eduardozulian @fullofcaffeine @nosolosw
The text was updated successfully, but these errors were encountered: