Skip to content

Commit

Permalink
Changed 'emit' functions in Area,Line, and Radar chart to 'dispatch' …
Browse files Browse the repository at this point in the history
…to work with Livewire 3
  • Loading branch information
redsquirrelstudio committed Oct 5, 2023
1 parent ca04427 commit 4c70acd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Charts/LivewireAreaChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function onPointClick($point)
return;
}

$this->emit($onPointClickEventName, $point);
$this->dispatch($onPointClickEventName, $point);
}

public function render()
Expand Down
2 changes: 1 addition & 1 deletion src/Charts/LivewireLineChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function onPointClick($point)
return;
}

$this->emit($onPointClickEventName, $point);
$this->dispatch($onPointClickEventName, $point);
}

public function render()
Expand Down
2 changes: 1 addition & 1 deletion src/Charts/LivewireRadarChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function onPointClick($point)
return;
}

$this->emit($onPointClickEventName, $point);
$this->dispatch($onPointClickEventName, $point);
}

public function render()
Expand Down

0 comments on commit 4c70acd

Please sign in to comment.