Skip to content

Commit 8b353e8

Browse files
committed
Update CHANGELOG
1 parent 793c875 commit 8b353e8

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ where X.Y.Z is the semver of most recent react-plotly.js release.
1111

1212
## [Unreleased]
1313

14+
### Added
15+
16+
- Added missing `onTreemapClick` and `onIcicleClick` event props for the `plotly_treemapclick` and `plotly_icicleclick` events [[#376](https://github.com/plotly/react-plotly.js/pull/376)]
17+
- Added additional missing events: `onLegendTitleClick`, `onLegendTitleDoubleClick`, `onBeforePlot`, `onAnimating`, and `onTransitioned` [[#376](https://github.com/plotly/react-plotly.js/pull/376)]
18+
19+
### Fixed
20+
21+
- Returning `false` from `onSunburstClick`, `onTreemapClick`, or `onIcicleClick` now prevents the drill-down [[#376](https://github.com/plotly/react-plotly.js/pull/376)]
22+
- `onUpdate` now fires for these via `plotly_animated`, so it reports the figure after the new `level` is applied and no longer fires when the drill-down is cancelled
23+
24+
### Removed
25+
26+
- Removed the errantly added `onClickAnywhere` and `onHoverAnywhere` props [[#376](https://github.com/plotly/react-plotly.js/pull/376)]
27+
- plotly.js has no `plotly_clickanywhere` or `plotly_hoveranywhere` events, so these never fired
28+
- `clickanywhere` and `hoveranywhere` are **layout attributes** that widen the ordinary `plotly_click` / `plotly_hover`, so the feature is reached through `onClick` / `onHover` with the layout flag set — see the README
29+
1430
## [4.0.0] - 2026-06-18
1531

1632
### Added
@@ -38,7 +54,8 @@ where X.Y.Z is the semver of most recent react-plotly.js release.
3854

3955
### Added
4056

41-
- `onClickAnywhere` and `onHoverAnywhere` event props for the corresponding `plotly_clickanywhere` and `plotly_hoveranywhere` events introduced in plotly.js v3 [[#360](https://github.com/plotly/react-plotly.js/pull/360)]
57+
- `onClickAnywhere` and `onHoverAnywhere` event props [[#360](https://github.com/plotly/react-plotly.js/pull/360)]
58+
- **Correction:** plotly.js v3 introduced `clickanywhere` / `hoveranywhere` as _layout attributes_, not as events, so these props never fired. They are removed in the next release.
4259

4360
### Changed
4461

0 commit comments

Comments
 (0)