Skip to content

Commit d584650

Browse files
authored
Merge pull request #105 from redsquirrelstudio/livewire-3-event-fix
Changed 'emit' functions in Area,Line, and Radar chart to 'dispatch' …
2 parents 5a222ab + 4c70acd commit d584650

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Charts/LivewireAreaChart.php

+1-1
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

+1-1
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

+1-1
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)