We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ba749a commit d971717Copy full SHA for d971717
1 file changed
src/ReactCodeInput.js
@@ -161,11 +161,12 @@ class ReactCodeInput extends Component {
161
value;
162
163
if (this.state.filterKeyCodes.length > 0) {
164
- this.state.filterKeyCodes.map((item) => {
+ this.state.filterKeyCodes.some((item) => {
165
if (item === e.keyCode) {
166
e.preventDefault();
167
return true;
168
}
169
+ return false;
170
});
171
172
0 commit comments