Disable caret positionning on resetPattern #30
+11
−10
+1 to this. Did not expect resetPattern to steal focus. |
Much appreciated on yet another PR :D Would love to see a test implemented to confirm the fix and avoid and future regression. https://github.com/firstopinion/formatter.js/blob/master/test/formatter.js#L289 Thanks again! |
1 check passed
default
The Travis CI build passed
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Main issue : there is no way to format the input when it is updated with 'val()' function.
Calling 'resetPattern' is the good solution, unfortunally the input get focus; this cause troubles on IE7 (inputs are blinking continuously) and on modern browsers since focus are stolen.
So I disabled the caret manipulation on 'resetPattern'