cursor out of control in textarea on IOS8 safari
问题 cursor is not in textarea when user input long text or input some enter. This only happens on IOS8. see attachment. 回答1: find a wordaround to resolve the problem. textarea.addEventListener('scroll', function(evt){ evt = evt || window.evt; evt.target.setSelectionRange(evt.target.textLength - 1, evt.target.textLength - 1); setTimeout(function(){ evt.target.setSelectionRange(evt.target.textLength, evt.target.textLength); }, 0); }); 来源: https://stackoverflow.com/questions/31376906/cursor-out-of