File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ const metadata = {
103
103
* @type {number }
104
104
* @public
105
105
*/
106
- maxLength : {
106
+ maxlength : {
107
107
type : Integer ,
108
108
defaultValue : null ,
109
109
} ,
@@ -113,8 +113,8 @@ const metadata = {
113
113
* in the <code>ui5-textarea</code>.
114
114
* <br><br>
115
115
* If set to <code>false</code>, the user is not allowed to enter more characters than what is set in the
116
- * <code>maxLength </code> property.
117
- * If set to <code>true</code> the characters exceeding the <code>maxLength </code> value are selected on
116
+ * <code>maxlength </code> property.
117
+ * If set to <code>true</code> the characters exceeding the <code>maxlength </code> value are selected on
118
118
* paste and the counter below the <code>ui5-textarea</code> displays their number.
119
119
*
120
120
* @type {boolean }
@@ -353,7 +353,7 @@ class TextArea extends UI5Element {
353
353
leftCharactersCount ;
354
354
355
355
if ( this . showExceededText ) {
356
- const maxLength = this . maxLength || 0 ;
356
+ const maxLength = this . maxlength || 0 ;
357
357
358
358
if ( maxLength ) {
359
359
leftCharactersCount = maxLength - this . value . length ;
@@ -365,7 +365,7 @@ class TextArea extends UI5Element {
365
365
}
366
366
}
367
367
} else {
368
- calcedMaxLength = this . maxLength ;
368
+ calcedMaxLength = this . maxlength ;
369
369
}
370
370
371
371
return {
Original file line number Diff line number Diff line change @@ -148,17 +148,17 @@ <h2>Text Area: Growing with initial rows 4 and growing up to 12</h2>
148
148
149
149
< section class ="group ">
150
150
< h2 > Text Area: growing with max length 20 characters </ h2 >
151
- < ui5-textarea id ="ta-max-length " class ="fixed-width " growing max-length ="20 " placeholder ="Max length "> </ ui5-textarea >
151
+ < ui5-textarea id ="ta-max-length " class ="fixed-width " growing maxlength ="20 " placeholder ="Max length "> </ ui5-textarea >
152
152
</ section >
153
153
154
154
< section class ="group ">
155
155
< h2 > Text Area: max length 20 characters </ h2 >
156
- < ui5-textarea class ="fixed-width " max-length ="20 " placeholder ="Max length "> </ ui5-textarea >
156
+ < ui5-textarea class ="fixed-width " maxlength ="20 " placeholder ="Max length "> </ ui5-textarea >
157
157
</ section >
158
158
159
159
< section class ="group ">
160
- < h2 > Text Area: showExceededText with maxLength </ h2 >
161
- < ui5-textarea id ="show-max-length " class ="fixed-width fixed-height " max-length ="20 " show-exceeded-text placeholder ="Max length and Show Exceeded Text "> </ ui5-textarea >
160
+ < h2 > Text Area: showExceededText with maxlength </ h2 >
161
+ < ui5-textarea id ="show-max-length " class ="fixed-width fixed-height " maxlength ="20 " show-exceeded-text placeholder ="Max length and Show Exceeded Text "> </ ui5-textarea >
162
162
</ section >
163
163
164
164
< section class ="group ">
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ <h3>Basic TextArea</h3>
19
19
< section >
20
20
< h3 > TextArea with Maximum Length</ h3 >
21
21
< div class ="snippet ">
22
- < ui5-textarea class ="textarea-width " placeholder ="Type no more than 10 symbols " max-length ="10 " show-exceeded-text > </ ui5-textarea >
22
+ < ui5-textarea class ="textarea-width " placeholder ="Type no more than 10 symbols " maxlength ="10 " show-exceeded-text > </ ui5-textarea >
23
23
</ div >
24
24
< pre class ="prettyprint lang-html "> < xmp >
25
- < ui5-textarea placeholder ="Type some text " max-length ="10 " show-exceeded-text > </ ui5-textarea >
25
+ < ui5-textarea placeholder ="Type some text " maxlength ="10 " show-exceeded-text > </ ui5-textarea >
26
26
</ xmp > </ pre >
27
27
</ section >
28
28
You can’t perform that action at this time.
0 commit comments