From 802b609a262c8b1dacc02cde9c840d18b7969648 Mon Sep 17 00:00:00 2001 From: Danail Date: Thu, 23 Nov 2023 15:10:17 +0200 Subject: [PATCH] Allow setting the "autocomplete" attribute on Textarea fields --- core/Field/Textarea_Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Field/Textarea_Field.php b/core/Field/Textarea_Field.php index caac0b23..b84df4ba 100644 --- a/core/Field/Textarea_Field.php +++ b/core/Field/Textarea_Field.php @@ -10,7 +10,7 @@ class Textarea_Field extends Field { /** * {@inheritDoc} */ - protected $allowed_attributes = array( 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is' ); + protected $allowed_attributes = array( 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is', 'autocomplete' ); /** * Number of rows (affects textarea height)