Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
remove a hack (proposed in #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuz committed Apr 9, 2016
1 parent eeddfd7 commit 659d596
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Mask.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ export default class Mask extends Component {
const input = this.getInput();
if (input === document.activeElement) {
input.setSelectionRange(lastIndex, lastIndex);
// HACK
setTimeout(() => input.setSelectionRange(lastIndex, lastIndex));
}
}

Expand Down

0 comments on commit 659d596

Please sign in to comment.