File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2018 - 2019 Ajay NS
3
+ Copyright (c) 2018 - 2020 Ajay NS
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -214,7 +214,11 @@ class OtpInput extends Component<Props, State> {
214
214
} else if ( e . keyCode === RIGHT_ARROW || e . key === 'ArrowRight' ) {
215
215
e . preventDefault ( ) ;
216
216
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
+ ) {
218
222
e . preventDefault ( ) ;
219
223
}
220
224
} ;
You can’t perform that action at this time.
0 commit comments