Skip to content
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: Toolbar not visible when previewed. Error in block when returning to Desktop #52587

Closed
shimotmk opened this issue Jul 13, 2023 · 1 comment · Fixed by #52588
Closed
Assignees
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended

Comments

@shimotmk
Copy link
Contributor

Description

RichText: Toolbar not visible when previewed. Error in block when returning to Desktop

Step-by-step reproduction instructions

  1. Open a Post or Page.
  2. Enter text in paragraph blocks, etc.
  3. When you select a sentence, a toolbar will appear.
  4. The toolbar is not displayed when previewing on Tablet or Mobile.
  5. When I go back to Desktop I get an error in the block.
    This block has encountered an error and cannot be previewed.
    The error message that occurred in the console is below.

richtext

Screenshots, screen recording, code snippet

richtext.mp4

Environment info

Environment

  • WordPress: 6.3-beta4
  • PHP: 7.4.1
  • Server: nginx/1.16.0
  • Database: mysqli (Server: 8.0.16 / Client: mysqlnd 7.4.1)
  • Browser: Chrome 114.0.0.0 (macOS)
  • Theme: Twenty Twenty-Three 1.1
  • MU-Plugins: None activated
  • Plugins:
    • Gutenberg 16.2.0
    • WordPress Beta Tester 3.5.2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Package] Block editor /packages/block-editor labels Jul 13, 2023
@Mamaduka
Copy link
Member

I can reproduce the bug; the error(s) are coming from MarginVisualizer and PaddingVisualizer components

This might be somewhat related to #52155 because I can only reproduce an error when similar requirements are met. In this case, "Custom fields" are enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended
Projects
No open projects
2 participants