Skip to content

BarChart/LineChart: Throwing errors on console #1145

@jcailan

Description

@jcailan

Describe the bug
When using react router, the chart component throws up errors in the console and the webpage becomes blank.

Isolated Example
See github repo below:
https://github.com/jcailan/ui5-webc-react

To Reproduce
Steps to reproduce the behavior:

  1. Read the README file to understand how to run the application
  2. After the application loads on the browser, click on Progress List to navigate to another view using react router
    image
  3. Click on the react icon to navigate back to the home page view
    image
  4. The screen will flicker and end up with blank page. See error:
    image
    image

Expected behavior
The home page should reload all the components including the Charts.

Screenshots
Already provided in the To Reproduce section

UI5 Web Components for React Information
@ui5/webcomponents version: ^1.0.0-rc.11
@ui5/webcomponents-react version: ^0.13.0
Operating System: MacOS
Browser: Google Chrome

Additional context
I tried with the latest version of chart component ^0.13.0 but the error still exists there.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions