Skip to content

React warns of “two children with the same key” due to identical custom and accent colors #316

Open
@nickcernis

Description

With define( 'SCRIPT_DEBUG', true );, a warning appears in the console when opening the color palette for the paragraph block:

Screen Shot 2019-11-04 at 09 12 33

The text, “the behavior is unsupported and could change in a future version” suggests we should address this, perhaps by altering one of the two colors slightly.

This affects both WP 5.2 and the 5.3RCs.

To reproduce

  1. Ensure define( 'SCRIPT_DEBUG', true ); is set in wp-config.php.
  2. Create a paragraph block and open the Color Settings pane in the Block sidebar.
  3. Check your browser console. (I tested Chrome.)

Expected behavior
No errors are triggered by theme default color choices.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions