Closed fdaugan closed 10 years ago
+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!
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'