Content load fails if number passed as fontSizeSlug #32719
Labels
[Package] Block editor
/packages/block-editor
[Type] Bug
An existing feature does not function as intended
Description
With Gutenberg 10.8.1 block content fails to load in the editor if a number is passed to
getFontSizeClass
instead of a string. Previously lodash kebabCase was forgiving of this misdemeanor.Step-by-step reproduction instructions
Run jetpack blocks in local env with 10.8.1
Insert following code into code view of editor
Switch back to editor view and
The content will not show in the editor, and the following error will show in the console:
Expected behaviour
This method will continue to accept numbers as fontSizeSlug for those blocks that have been expecting it to work.
The text was updated successfully, but these errors were encountered: