From a0b4b034ac57d925ff8c140ce06859599851154c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20Fie=C3=9Finger?= <41627893+bfiessinger@users.noreply.github.com> Date: Fri, 27 Aug 2021 20:19:22 +0200 Subject: [PATCH] fix original livewire listener array ignored (closes #13) --- src/LivewireSelect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LivewireSelect.php b/src/LivewireSelect.php index 3422f70..a5f7ef8 100755 --- a/src/LivewireSelect.php +++ b/src/LivewireSelect.php @@ -155,7 +155,7 @@ public function getListeners() return collect($this->dependsOn) ->mapWithKeys(function ($key) { return ["{$key}Updated" => 'updateDependingValue']; - }) + })->merge($this->listeners) ->toArray(); }