Reputation: 16871
Example: http://jsfiddle.net/TAWmx/7/
Using an Ember.TextArea view with valueBinding, when the user types into the textarea in IE7-9 or Opera, the cursor position changes to the end of the textarea after each key press.
In the JSFiddle example, if you start to type above the word "Test", the character you type will appear and then the cursor will jump to the text of the textarea and any remaining text you type will show up at the bottom.
This means that is is extremely difficult to make changes to text within a text area that's not at the very end.
I believe this is related to the issue with IE that causes the caret position to be lost whenever the content of the text area is modified. Is there a way around this in Ember such as doing one-way databinding?
Upvotes: 0
Views: 808
Reputation: 16871
I submitted a pull request to ember.js to save and restore the cursor position to resolve this issue in the Ember.TextArea view.
Upvotes: 1