plotly / plotly/react-plotly.js
Uncaught TypeError: Cannot read property 'match' of null when clicking any options in the ModeBar
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 138
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
描述
"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)

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.

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?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从报告中的 plotly.js、react 和 react-plotly.js 版本,以及包含 displayModeBar 和 toImageButtonOptions 的 ModeBar 配置开始。通过点击 ModeBar 选项来复现间歇性错误,捕获控制台堆栈跟踪,并确定故障属于此 React wrapper 还是 plotly.js;当明确责任归属并建立可靠的复现方式后,该 issue 即可解决。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100