diff --git a/src/Form/Fields/Fields.php b/src/Form/Fields/Fields.php index 107036e4..a146badb 100644 --- a/src/Form/Fields/Fields.php +++ b/src/Form/Fields/Fields.php @@ -51,7 +51,7 @@ public function field(string $field, string $label, string $modelAttribute = nul { $instance = new $field($this->form, $label, $modelAttribute, ...$params); - $this->register($field); + $this->register($instance); return $instance; }