Skip to content

WorldMap component goes off after state update. #6265

@ghost

Description

  • WorldMap component's labels misalign after a state update to the places props.
  • Code style : <WorldMap places={state? places1 : places2} />

Expected Behavior

  • The Place labels should be placed at their correct coordinates after state updates.

Actual Behavior

  • The Place labels misalign after state update to the places props.

URL, screen shot, or Codepen exhibiting the issue

https://codesandbox.io/s/grommet-world-map-issue-zyhtu5?file=/src/App.js

PR (33)

Your Environment

  • Grommet version: 2.25.1
  • Browser Name and version: Chromium
  • Operating System and version (desktop or mobile): Not tested

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue that does not match design or documentation and requires code changes to addresshelp wantedWould appreciate community help working on this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions