Skip to content

Commit 96f8055

Browse files
authored
issue 91 fix (#169)
* issue 91 fix * feedback fix
1 parent 9674b03 commit 96f8055

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/components/TextInput/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function TextInput({
1818
type,
1919
onEnterKey,
2020
readonly,
21+
maxLength,
2122
}) {
2223
const [val, setVal] = useState(value);
2324
const delayedOnChange = useRef(
@@ -41,6 +42,7 @@ function TextInput({
4142
readOnly={readonly}
4243
defaultValue={value}
4344
type={type}
45+
maxLength={maxLength}
4446
placeholder={`${placeholder}${placeholder && required ? " *" : ""}`}
4547
styleName={`${value || val ? "haveValue" : ""} ${
4648
errorMsg ? "haveError" : ""
@@ -85,6 +87,7 @@ TextInput.defaultProps = {
8587
type: "text",
8688
onEnterKey: () => {},
8789
readonly: false,
90+
maxLength: undefined,
8891
};
8992

9093
TextInput.propTypes = {

src/containers/Challenges/Listing/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const Listing = ({
6666
updateFilter(filterChange);
6767
});
6868
}}
69+
maxLength="100"
6970
/>
7071
</div>
7172
<div styleName="separator" />

0 commit comments

Comments
 (0)