- UiInput and UiSelect now allows NULL values to be passed
This commit is contained in:
1 parent
94e42747a4
commit
2014f7fdeb
2 files changed
+4
-2
No files matched your search
@@ -22,10 +22,11 @@ class UiInput extends UiElement implements Extension {
|
||||
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
|
||||
}
|
||||
|
||||
public function buildHtml(string $name, string $value, array $attributes = []) : string
|
||||
public function buildHtml(string $name, ? string $value = null, array $attributes = []) : string
|
||||
{
|
||||
$this->setValue($value);
|
||||
$this->attributes([ 'name' => $name ] + $attributes + $this->attributes);
|
||||
|
||||
return $this->render();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user