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

Storybook block editor example erroring when trying to edit a paragraph block #25975

Closed
talldan opened this issue Oct 9, 2020 · 0 comments · Fixed by #25976
Closed

Storybook block editor example erroring when trying to edit a paragraph block #25975

talldan opened this issue Oct 9, 2020 · 0 comments · Fixed by #25976
Assignees
Labels
[Package] Block editor /packages/block-editor [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Oct 9, 2020

Describe the bug
Currently the storybook Block Editor shows an error when trying to edit a paragraph block.

The error in the console is:

TypeError: fontSizes is undefined
    useIsFontSizeDisabled main.2a84f439e7e02d113f8d.bundle.js:1
    useIsTypographyDisabled main.2a84f439e7e02d113f8d.bundle.js:1
    TypographyPanel main.2a84f439e7e02d113f8d.bundle.js:1
    ...

This seems very similar to a previous issue - #24554, and might be a case of these settings needing defaults.

To reproduce
Steps to reproduce the behavior:

  1. Go to https://wordpress.github.io/gutenberg/?path=/story/playground-block-editor--default
  2. Click on the paragraph block
  3. See error

Expected behavior
No error

@talldan talldan added [Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended labels Oct 9, 2020
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 9, 2020
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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant