Open RaduGrama opened 9 years ago
I am experiencing the same problem, but only in IE.
Same problem, Ubuntu 14.04 x64 in Chrome 45.0.2454.93 and Firefox 40.0.3
+1
Same in latest versions of Chrome, Firefox in both of Mac and Windows.
Just made a pull request about this issue: https://github.com/firstopinion/formatter.js/pull/94
Im still having an issue while using the jquery version. Anybody do any hacks to fix it there on file dist/jquery.formatter.min.js
I used this script to get around it <script type="text/javascript"> $( document ).ready(function() { window.scrollTo(0,0); }); </script>
The change @smaury made is the fix! At one point I had tried using @Jeff-P's solution, but it's more of a hack, and changes the scroll position for a user if they refresh the page.
I am experiencing unexpected focus when using 'persistent': true. The page seems to scroll to the last element formatter is applied to, and this is issue appears with formatter.js as well as jquery.formatter.js.
Take a look at http://jsfiddle.net/46FNG/67/, there's an input all the way at the top, then a bunch of
tags, then a few elements that formatter applies to. The page scrolls to those elements at the bottom of the page instead of staying at the top.