Skip to content

Shortcode block - Crash when switching dark mode on/off [only on Android] #29730

@fluiddot

Description

@fluiddot

Description

After adding a Shortcode block, switching dark mode on and then off produces a crash. I checked this behaviour with the rest of blocks and looks like it only happens with this one.

I also tested on production version 16.7 and it's also happening here so it's not a new regression.

Sentry issue: https://sentry.io/organizations/a8c/issues/1634562844/?project=1438083&project=1438088&query=is%3Aunresolved+user.email%3Afluiddot%40gmail.com&statsPeriod=14d

Step-by-step reproduction instructions

  1. Add a Shortcode block.
  2. Enable dark mode.
  3. Disable dark mode.
  4. Observe that the app crash.

Expected behaviour

Switching dark mode on/off shouldn't produce a crash.

Actual behaviour

Switching dark mode on/off should update the styles as expected.

Screenshots or screen recording (optional)

shortcode-dark-mode-crash-android.mp4

WordPress information

  • WordPress version: 16.9
  • Gutenberg version: N/A
  • Are all plugins except Gutenberg deactivated? N/A
  • Are you using a default theme (e.g. Twenty Twenty-One)? N/A

Device information

  • Device: iPhone 11
  • Operating system: iOS 14.2
  • WordPress app version: 16.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)[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