Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit af31c6a

Browse files
Merge pull request #613 from topcoder-platform/issu-392
Issue #392 fixes
2 parents fbde749 + 02add8a commit af31c6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/src/components/Input/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export default function Input({ className, label, onChange, value }) {
1818
id={id}
1919
className={style.input}
2020
onChange={onChange}
21+
onKeyDown={(event) => {
22+
if (event.keyCode === 8) {
23+
event.preventDefault();
24+
event.currentTarget.value = event.currentTarget.value.slice(0, -1);
25+
}
26+
}}
2127
value={value}
2228
/>
2329
</div>

0 commit comments

Comments
 (0)