Skip to content

Commit

Permalink
Add missing quote in dispatchTo rule (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompin82 authored Oct 9, 2024
1 parent 56a98ad commit 7c6149f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Rules/Support/DispatchToRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function apply(array $ruleData): array
$event = strval(data_get($ruleData, 'event'));
$params = (array) data_get($ruleData, 'params');

$output['attributes'] = ['wire:click' => "\$dispatchTo('{$to}',{$event}', " . Js::from($params) . ")"];
$output['attributes'] = ['wire:click' => "\$dispatchTo('{$to}','{$event}', " . Js::from($params) . ")"];

return $output;
}
Expand Down

0 comments on commit 7c6149f

Please sign in to comment.