diff --git a/core/Field/Date_Field.php b/core/Field/Date_Field.php index ed9d4580..a91cb853 100644 --- a/core/Field/Date_Field.php +++ b/core/Field/Date_Field.php @@ -10,7 +10,7 @@ class Date_Field extends Field { /** * {@inheritDoc} */ - protected $allowed_attributes = array( 'placeholder', 'autocomplete' ); + protected $allowed_attributes = array( 'disabled', 'placeholder', 'autocomplete' ); /** * The storage format for use in PHP diff --git a/core/Field/Field.php b/core/Field/Field.php index 256e5d41..fd0d3f44 100644 --- a/core/Field/Field.php +++ b/core/Field/Field.php @@ -154,7 +154,7 @@ class Field implements Datastore_Holder_Interface { * * @var array */ - protected $allowed_attributes = array(); + protected $allowed_attributes = array( 'disabled' ); /** * The width of the field. diff --git a/core/Field/Text_Field.php b/core/Field/Text_Field.php index a3af3732..e2ee05af 100644 --- a/core/Field/Text_Field.php +++ b/core/Field/Text_Field.php @@ -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', 'autocomplete' ); + protected $allowed_attributes = array( 'disabled', 'list', 'max', 'maxLength', 'min', 'pattern', 'placeholder', 'readOnly', 'step', 'type', 'is', 'inputmode', 'autocomplete' ); } diff --git a/core/Field/Textarea_Field.php b/core/Field/Textarea_Field.php index b84df4ba..540911e3 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', 'autocomplete' ); + protected $allowed_attributes = array( 'disabled', 'maxLength', 'minLength', 'placeholder', 'readOnly', 'is', 'autocomplete' ); /** * Number of rows (affects textarea height)