Skip to content

Commit

Permalink
Fixes #2 : add minlength as valid attribute for textarea
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Jul 14, 2020
1 parent ca0c474 commit b128b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/View/Helper/FormTextarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class FormTextarea extends AbstractHelper
'disabled' => true,
'form' => true,
'maxlength' => true,
'minlength' => true,
'name' => true,
'placeholder' => true,
'readonly' => true,
Expand Down
2 changes: 2 additions & 0 deletions test/View/Helper/FormTextareaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function validAttributes()
['disabled', 'assertContains'],
['form', 'assertContains'],
['maxlength', 'assertContains'],
['minlength', 'assertContains'],
['name', 'assertContains'],
['placeholder', 'assertContains'],
['readonly', 'assertContains'],
Expand Down Expand Up @@ -212,6 +213,7 @@ public function getCompleteElement()
'disabled' => 'disabled',
'form' => 'value',
'maxlength' => 'value',
'minlength' => 'value',
'name' => 'value',
'placeholder' => 'value',
'readonly' => 'readonly',
Expand Down

0 comments on commit b128b5d

Please sign in to comment.