Skip to content

Uncaught TypeError: Cannot read property 'match' of null when clicking any options in the ModeBar #215

Open
@SnowNooDLe

Description

@SnowNooDLe
"plotly.js": "^1.55.2"
"react": "^16.13.1"
"react-plotly.js": ^"2.5.0"

I am using react-plotly.js for our project.

I haven't modified much on this ModeBar (image below)

image

Added only two configs to the ModeBar

config={{
          displayModeBar: true,
          toImageButtonOptions: {
            filename: "something",
          },
        }}

It doesn't always happen but time to time, by clicking one of the options from the ModeBar, it still does the job without crashing the app but in console, it prints the following errors.

image

Right after I created this issue, just refreshed the app and went over exact same steps but no warning message this time.

I am quite new to React and this error message only comes from ModeBar buttons so I am assuming it's something to do with plotly.js library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions