diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index 502163b0bb2..d05a2a65aed 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -1537,7 +1537,7 @@ public function getSchemaDataDefaults() 'disabled' => $this->isDisabled(), 'customValidationMessage' => $this->getCustomValidationMessage(), 'validation' => $this->getSchemaValidation(), - 'attributes' => [], + 'attributes' => $this->getAttributes(), 'autoFocus' => $this->isAutofocus(), 'data' => [], ];