The current behavior of bind-fields uses the change event to update bindings. The behavior of the change event is such that the state will not update until a form field is blurred. This means that, for forms with an :onSubmit handler, if a user presses enter within a modified form field, the state of the bound atom will reflect its old value.
The input event (supported by all modern browsers, IE9+) would fire anytime the input value changes, thereby ensuring the bound atom is never out of sync.
The current behavior of
bind-fields
uses thechange
event to update bindings. The behavior of thechange
event is such that the state will not update until a form field is blurred. This means that, for forms with an:onSubmit
handler, if a user presses enter within a modified form field, the state of the bound atom will reflect its old value.The
input
event (supported by all modern browsers, IE9+) would fire anytime the input value changes, thereby ensuring the bound atom is never out of sync.