Skip to content

Commit 2881059

Browse files
committed
Merge extra form data recursively
1 parent 7695112 commit 2881059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/JsDrivers/Alpine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function addToFormAttributes()
3535
}
3636

3737
return [
38-
'x-data' => $this->renderAlpineXData(collect($this->getInitialFormData())->merge($extraData)->all(), $this->scope),
38+
'x-data' => $this->renderAlpineXData(collect($this->getInitialFormData())->mergeRecursive($extraData)->all(), $this->scope),
3939
];
4040
}
4141

0 commit comments

Comments
 (0)