File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
containers/Challenges/Listing Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ function TextInput({
18
18
type,
19
19
onEnterKey,
20
20
readonly,
21
+ maxLength,
21
22
} ) {
22
23
const [ val , setVal ] = useState ( value ) ;
23
24
const delayedOnChange = useRef (
@@ -41,6 +42,7 @@ function TextInput({
41
42
readOnly = { readonly }
42
43
defaultValue = { value }
43
44
type = { type }
45
+ maxLength = { maxLength }
44
46
placeholder = { `${ placeholder } ${ placeholder && required ? " *" : "" } ` }
45
47
styleName = { `${ value || val ? "haveValue" : "" } ${
46
48
errorMsg ? "haveError" : ""
@@ -85,6 +87,7 @@ TextInput.defaultProps = {
85
87
type : "text" ,
86
88
onEnterKey : ( ) => { } ,
87
89
readonly : false ,
90
+ maxLength : undefined ,
88
91
} ;
89
92
90
93
TextInput . propTypes = {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ const Listing = ({
66
66
updateFilter ( filterChange ) ;
67
67
} ) ;
68
68
} }
69
+ maxLength = "100"
69
70
/>
70
71
</ div >
71
72
< div styleName = "separator" />
You can’t perform that action at this time.
0 commit comments