Skip to content

Instantly share code, notes, and snippets.

@filipelinhares
Last active September 18, 2018 03:44
Show Gist options
  • Save filipelinhares/495aefb5d34ef80fa02ba3c50c37df13 to your computer and use it in GitHub Desktop.
Save filipelinhares/495aefb5d34ef80fa02ba3c50c37df13 to your computer and use it in GitHub Desktop.
Fix input mask
var defer = typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame : setTimeout
defer( function () { element[0].setSelectionRange(element[0].selectionStart + 1, element[0].selectionStart + 1, 'none') }, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment