Skip to content

Commit 1dc63e8

Browse files
committed
#21779 Adminhtml textarea field doesn't accept maxlength
1 parent ce17220 commit 1dc63e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Textarea.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function getHtmlAttributes()
6464
'rows',
6565
'cols',
6666
'readonly',
67+
'maxlength',
6768
'disabled',
6869
'onkeyup',
6970
'tabindex',

lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/TextareaTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function testGetHtmlAttributes()
7676
'rows',
7777
'cols',
7878
'readonly',
79+
'maxlength',
7980
'disabled',
8081
'onkeyup',
8182
'tabindex',

0 commit comments

Comments
 (0)