Skip to content

Commit f0d860d

Browse files
committed
Reversing fill field order
1 parent a0f39b7 commit f0d860d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FormBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ private function getValue()
401401
return old($name, $value);
402402
}
403403

404-
return $formData[$name] ?? $value;
404+
$fromFill = $formData[$name] ?? null;
405+
406+
return $value ?? $fromFill;
405407
}
406408

407409
private function buildHtmlAttrs(array $attributes, $appendAttrs = true): string

0 commit comments

Comments
 (0)