Currently, if the code contains something like
<div>{{some_value}}</div>
Works perfectly.
Whereas
<textarea>{{some_val}}</textarea>
Works only when the cursor is not in the textbox
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is an intentional Meteor behavior. In the documentation:
Meteor will not update an
<input>or<textarea>that has focus, as in many cases this would be very disruptive to the user if they are trying to enter something (imagine you are typing up a paragraph in the field when it is suddenly overwritten). However, it does mean that a user will not get updates when they ‘collide’ with another user or other reactive change. If you want to override this behavior, you could probably have a hidden<div>or a js data element which you use to cause an appropriate update for your app (perhaps flag that there is a new value or to simply override it). This sort of collision is not trivial to deal with and may require different behaviors depending on the situation. Perhaps future versions of Meteor will give us some tools to make handling this easier. For a little more background, see this post.