diff --git a/forms/TextareaField.php b/forms/TextareaField.php index 53f5244c0..5fced5336 100755 --- a/forms/TextareaField.php +++ b/forms/TextareaField.php @@ -38,8 +38,9 @@ class TextareaField extends FormField { if($this->readonly) { $attributes = array( 'id' => $this->id(), - 'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . trim($this->extraClass())) : ''), + 'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . $this->extraClass()) : ''), 'name' => $this->name, + 'tabindex' => $this->getTabIndex(), 'readonly' => 'readonly' ); @@ -47,7 +48,7 @@ class TextareaField extends FormField { } else { $attributes = array( 'id' => $this->id(), - 'class' => (trim($this->extraClass()) ? trim($this->extraClass()) : ''), + 'class' => (trim($this->extraClass()) ? $this->extraClass() : ''), 'name' => $this->name, 'rows' => $this->rows, 'cols' => $this->cols