We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0783356 commit d9a5fa6Copy full SHA for d9a5fa6
1 file changed
src/Builders/FieldBuilder.php
@@ -69,7 +69,8 @@ public function makeInput($type, $name, $value, $options = [])
69
$value = $value->format($options['format'] ?? 'Y-m-d');
70
}
71
72
- if (isset($options['value']) && is_null($value)) {
+ // If a value is set in attributes, it takes precedence (overwrites the default value)
73
+ if (isset($options['value']) && ! is_null($options['value'])) {
74
$value = $options['value'];
75
unset($options['value']);
76
0 commit comments