From 7c6149fd8f457fc7031c774ee722597e3154a848 Mon Sep 17 00:00:00 2001 From: Tomas Jonsson <47041409+tompin82@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:01:44 +0200 Subject: [PATCH] Add missing quote in dispatchTo rule (#1719) --- src/Components/Rules/Support/DispatchToRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }