mario-education 2.4.545-feedback → 2.4.546-feedback

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/index.js CHANGED
@@ -33665,13 +33665,15 @@ var BarChart = function BarChart(_ref) {
33665
33665
  var relativeX = barCenterX - containerRect.left;
33666
33666
  var containerWidth = containerRect.width;
33667
33667
  var direction = relativeX > containerWidth / 2 ? "left" : "right";
33668
- setTooltipData({
33668
+ var newTooltip = {
33669
33669
  x: relativeX,
33670
33670
  y: rect.top - containerRect.top,
33671
33671
  dataPointIndex: dataPointIndex,
33672
33672
  direction: direction,
33673
33673
  isSelect: isSelect != null ? isSelect : false
33674
- });
33674
+ };
33675
+ tooltipDataRef.current = newTooltip;
33676
+ setTooltipData(newTooltip);
33675
33677
  }
33676
33678
  };
33677
33679