Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tabindex being present on read only form fields instead of regula…

…r ones.
  • Loading branch information...
commit 1460789817e743ac017d265a20ec77a9f68c5212 1 parent 428d1d2
@shakesoda shakesoda authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 forms/TextareaField.php
View
6 forms/TextareaField.php
@@ -61,8 +61,7 @@ function Field() {
$hiddenAttributes = array(
'type' => 'hidden',
'name' => $this->name,
- 'value' => $value,
- 'tabindex' => $this->getTabIndex()
+ 'value' => $value
);
$containerSpan = $this->createTag(
@@ -79,7 +78,8 @@ function Field() {
'class' => ($this->extraClass() ? $this->extraClass() : ''),
'name' => $this->name,
'rows' => $this->rows,
- 'cols' => $this->cols
+ 'cols' => $this->cols,
+ 'tabindex' => $this->getTabIndex()
);
if($this->disabled) $attributes['disabled'] = 'disabled';
Please sign in to comment.
Something went wrong with that request. Please try again.