From 4c70acd41c5696dac8885d561bae5b126ba6118e Mon Sep 17 00:00:00 2001 From: Lewis Raggett <46108903+redsquirrelstudio@users.noreply.github.com> Date: Thu, 5 Oct 2023 11:41:49 +0100 Subject: [PATCH] Changed 'emit' functions in Area,Line, and Radar chart to 'dispatch' to work with Livewire 3 --- src/Charts/LivewireAreaChart.php | 2 +- src/Charts/LivewireLineChart.php | 2 +- src/Charts/LivewireRadarChart.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Charts/LivewireAreaChart.php b/src/Charts/LivewireAreaChart.php index c23a6a4..46b4d28 100755 --- a/src/Charts/LivewireAreaChart.php +++ b/src/Charts/LivewireAreaChart.php @@ -26,7 +26,7 @@ public function onPointClick($point) return; } - $this->emit($onPointClickEventName, $point); + $this->dispatch($onPointClickEventName, $point); } public function render() diff --git a/src/Charts/LivewireLineChart.php b/src/Charts/LivewireLineChart.php index 9ac4496..81f6d52 100755 --- a/src/Charts/LivewireLineChart.php +++ b/src/Charts/LivewireLineChart.php @@ -26,7 +26,7 @@ public function onPointClick($point) return; } - $this->emit($onPointClickEventName, $point); + $this->dispatch($onPointClickEventName, $point); } public function render() diff --git a/src/Charts/LivewireRadarChart.php b/src/Charts/LivewireRadarChart.php index 48690e3..70d7834 100644 --- a/src/Charts/LivewireRadarChart.php +++ b/src/Charts/LivewireRadarChart.php @@ -26,7 +26,7 @@ public function onPointClick($point) return; } - $this->emit($onPointClickEventName, $point); + $this->dispatch($onPointClickEventName, $point); } public function render()