Skip to content

Commit 2b2f497

Browse files
authored
Merge pull request #21179 from manjesh-yadav/fix/20675
iOS - scanning magic code fix
2 parents 9bef507 + 99776a3 commit 2b2f497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MagicCodeInput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function MagicCodeInput(props) {
336336
// not currently being responsible for the input, this is
337337
// necessary to avoid calls when the input changes due to
338338
// deleted characters. Only happens in mobile.
339-
if (index !== editIndex) {
339+
if (index !== editIndex || _.isUndefined(focusedIndex)) {
340340
return;
341341
}
342342
onChangeText(value);

0 commit comments

Comments
 (0)