diff --git a/src/Components/Rules/Support/DispatchToRule.php b/src/Components/Rules/Support/DispatchToRule.php index 4d5ac147a..e951a4362 100644 --- a/src/Components/Rules/Support/DispatchToRule.php +++ b/src/Components/Rules/Support/DispatchToRule.php @@ -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; }