Skip to content

Commit

Permalink
Merge pull request #1204 from emandiev/allow-autocomplete-attribute
Browse files Browse the repository at this point in the history
Allow autocomplete attribute on Text and Textarea fields
  • Loading branch information
htmlburger-git authored Nov 28, 2023
2 parents 8126e11 + 33654fe commit e3a3d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Field/Text_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class Text_Field extends Field {
/**
* {@inheritDoc}
*/
protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode' );
protected $allowed_attributes = array( 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode', 'autocomplete' );
}
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 e3a3d67

Please sign in to comment.