Skip to content

Commit

Permalink
Merge pull request #21179 from manjesh-yadav/fix/20675
Browse files Browse the repository at this point in the history
iOS - scanning magic code fix
  • Loading branch information
Gonals authored Jun 22, 2023
2 parents 9bef507 + 99776a3 commit 2b2f497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MagicCodeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function MagicCodeInput(props) {
// not currently being responsible for the input, this is
// necessary to avoid calls when the input changes due to
// deleted characters. Only happens in mobile.
if (index !== editIndex) {
if (index !== editIndex || _.isUndefined(focusedIndex)) {
return;
}
onChangeText(value);
Expand Down

0 comments on commit 2b2f497

Please sign in to comment.