diff --git a/src/Modal.php b/src/Modal.php index b57904c..1c1cb13 100644 --- a/src/Modal.php +++ b/src/Modal.php @@ -43,7 +43,7 @@ public function openModal($component, $arguments = [], $modalAttributes = []): v $this->components[$id] = [ 'name' => $component, - 'attributes' => $arguments, + 'attributes' => $arguments, // Deprecated 'arguments' => $arguments, 'modalAttributes' => array_merge([ 'closeOnClickAway' => $componentClass::closeModalOnClickAway(), diff --git a/tests/LivewireModalTest.php b/tests/LivewireModalTest.php index 726d131..41c9470 100644 --- a/tests/LivewireModalTest.php +++ b/tests/LivewireModalTest.php @@ -29,6 +29,7 @@ public function testOpenModalEventListener(): void $id => [ 'name' => $component, 'arguments' => $arguments, + 'attributes' => $arguments, // Deprecated 'modalAttributes' => $modalAttributes, ], ]) @@ -58,6 +59,7 @@ public function testDestroyComponentEventListener(): void $id => [ 'name' => $component, 'arguments' => $arguments, + 'attributes' => $arguments, // Deprecated 'modalAttributes' => $modalAttributes, ], ])