Skip to content

Commit

Permalink
Merge pull request #105 from redsquirrelstudio/livewire-3-event-fix
Browse files Browse the repository at this point in the history
Changed 'emit' functions in Area,Line, and Radar chart to 'dispatch' …
  • Loading branch information
asantibanez authored Nov 7, 2023
2 parents 5a222ab + 4c70acd commit d584650
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 d584650

Please sign in to comment.