Skip to content

Shadow/Font size preset panel crashes the editor #65711

Open
@t-hamano

Description

@t-hamano

Description

Shadow panel

  • Open the site editor > global styles > Shadows > Choose one of the presets > click the Back button
  • The editor crashes
Uncaught TypeError: Cannot read properties of undefined (reading 'shadow') at shadows-edit-panel.js:165:31

Font size preset panel

  • Open the site editor > global styles > Typography > Font size presets > Choose one of the presets > click the Back button
  • The editor crashes
Uncaught TypeError: Cannot read properties of undefined (reading 'fluid') at FontSize (font-size.js:57:12)

After investigating the problem using git bisect, I found that the problem was caused by #64777.

Screenshots, screen recording, code snippet

Shadow panel

a296d467e9b8a647388068a2c049bb0f.mp4

Font size preset panel

font-size.mp4

Environment info

Gutenberg version: 19.3.0 (faa6968)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions