Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit db881d9

Browse files
committed
Add support for key param on wildcard method
1 parent ecc3ac3 commit db881d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tags/Livewire.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Livewire extends Tags
1313
*/
1414
public function wildcard($expression): string
1515
{
16-
return \Livewire\Livewire::mount($expression, $this->params->toArray());
16+
return \Livewire\Livewire::mount($expression, $this->params->except('key')->toArray(), $this->params->only('key')->first());
1717
}
1818

1919
/**
@@ -46,7 +46,7 @@ public function this(): string
4646
{
4747
$instanceId = $this->context['__livewire']->getId();
4848

49-
if (! count($this->params)) {
49+
if (!count($this->params)) {
5050
return "window.Livewire.find('{$instanceId}')";
5151
}
5252

0 commit comments

Comments
 (0)