Skip to content

Commit 11057ae

Browse files
committed
fix for field name missing
1 parent 09d7fbf commit 11057ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Field/Input.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public function render(
105105
$input->setAttribute('type', static::INPUT_TYPE);
106106
}
107107

108-
if ($name) {
108+
if ($this->name) {
109+
$input->setAttribute('name', $this->name);
110+
} else if ($name) {
109111
$input->setAttribute('name', $name);
110112
}
111113

0 commit comments

Comments
 (0)