Skip to content

Commit 4c70acd

Browse files
Changed 'emit' functions in Area,Line, and Radar chart to 'dispatch' to work with Livewire 3
1 parent ca04427 commit 4c70acd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Charts/LivewireAreaChart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function onPointClick($point)
2626
return;
2727
}
2828

29-
$this->emit($onPointClickEventName, $point);
29+
$this->dispatch($onPointClickEventName, $point);
3030
}
3131

3232
public function render()

src/Charts/LivewireLineChart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function onPointClick($point)
2626
return;
2727
}
2828

29-
$this->emit($onPointClickEventName, $point);
29+
$this->dispatch($onPointClickEventName, $point);
3030
}
3131

3232
public function render()

src/Charts/LivewireRadarChart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function onPointClick($point)
2626
return;
2727
}
2828

29-
$this->emit($onPointClickEventName, $point);
29+
$this->dispatch($onPointClickEventName, $point);
3030
}
3131

3232
public function render()

0 commit comments

Comments
 (0)