mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #40 from shakesoda/master
BUGFIX: Fix tab index on textarea fields. FIXES: #6650
This commit is contained in:
commit
cedb091593
@ -52,7 +52,6 @@ class TextareaField extends FormField {
|
||||
'id' => $this->id(),
|
||||
'class' => 'readonly' . ($this->extraClass() ? $this->extraClass() : ''),
|
||||
'name' => $this->name,
|
||||
'tabindex' => $this->getTabIndex(),
|
||||
'readonly' => 'readonly'
|
||||
);
|
||||
|
||||
@ -61,8 +60,7 @@ class TextareaField extends FormField {
|
||||
$hiddenAttributes = array(
|
||||
'type' => 'hidden',
|
||||
'name' => $this->name,
|
||||
'value' => $value,
|
||||
'tabindex' => $this->getTabIndex()
|
||||
'value' => $value
|
||||
);
|
||||
|
||||
$containerSpan = $this->createTag(
|
||||
@ -79,7 +77,8 @@ class TextareaField extends FormField {
|
||||
'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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user