We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2810bad commit 6892f59Copy full SHA for 6892f59
src/index.js
@@ -460,6 +460,7 @@ class PhoneInput extends React.Component {
460
// Put the cursor to the end of the input (usually after a focus event)
461
cursorToEnd = () => {
462
const input = this.numberInputRef;
463
+ if (document.activeElement !== input) return;
464
input.focus();
465
let len = input.value.length;
466
if (input.value.charAt(len-1)=== ')') len = len-1;
0 commit comments