Skip to content

Commit d99f728

Browse files
committed
🚨 Lint fixes & update (c) year
1 parent 5669898 commit d99f728

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 - 2019 Ajay NS
3+
Copyright (c) 2018 - 2020 Ajay NS
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/lib/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ class OtpInput extends Component<Props, State> {
214214
} else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
215215
e.preventDefault();
216216
this.focusNextInput();
217-
} else if (e.keyCode === SPACEBAR || e.key === ' ' || e.key === 'Spacebar') {
217+
} else if (
218+
e.keyCode === SPACEBAR ||
219+
e.key === ' ' ||
220+
e.key === 'Spacebar'
221+
) {
218222
e.preventDefault();
219223
}
220224
};

0 commit comments

Comments
 (0)