Skip to content

Commit

Permalink
Allow setting the "autocomplete" attribute on Textarea fields
Browse files Browse the repository at this point in the history
  • Loading branch information
emandiev committed Nov 23, 2023
1 parent 94fab46 commit 802b609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Field/Textarea_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 802b609

Please sign in to comment.