Skip to content

Commit

Permalink
Update TextareaField.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jul 10, 2021
1 parent 252aa1b commit 62aa221
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions libraries/src/Form/Field/TextareaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,10 @@ protected function getLayoutData()
{
$data = parent::getLayoutData();

// Initialize some field attributes.
$columns = $this->columns ? ' cols="' . $this->columns . '"' : '';
$rows = $this->rows ? ' rows="' . $this->rows . '"' : '';
$maxlength = $this->maxlength ? ' maxlength="' . $this->maxlength . '"' : '';

$extraData = array(
'maxlength' => $maxlength,
'rows' => $rows,
'columns' => $columns,
'maxlength' => $this->maxlength,
'rows' => $this->rows,
'columns' => $this->columns,
'charcounter' => $this->charcounter
);

Expand Down

0 comments on commit 62aa221

Please sign in to comment.