cx 24.10.1 → 24.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/charts.js CHANGED
@@ -18,6 +18,7 @@ import {
18
18
  debug,
19
19
  isDefined,
20
20
  isNonEmptyArray,
21
+ stopPropagation,
21
22
  closest,
22
23
  getTopLevelBoundingClientRect,
23
24
  Format,
@@ -1886,6 +1887,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
1886
1887
  if ((any || this.legendAction == "select") && !this.selection.isDummy) this.selection.selectInstance(instance);
1887
1888
  };
1888
1889
  _proto.render = function render(context, instance, key) {
1890
+ var _this = this;
1889
1891
  var data = instance.data;
1890
1892
  var content = !isUndefined(this.text) ? data.text : this.renderChildren(context, instance);
1891
1893
  return /*#__PURE__*/ jsxs(
@@ -1893,6 +1895,10 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
1893
1895
  {
1894
1896
  className: data.classNames,
1895
1897
  style: data.style,
1898
+ onMouseDown: stopPropagation,
1899
+ onClick: function onClick(e) {
1900
+ _this.handleClick(e, instance);
1901
+ },
1896
1902
  children: [
1897
1903
  this.renderShape(instance),
1898
1904
  content != null &&