If you have an input element with a binding to some property in a view model object.
In Chrome, if you are in the field and press enter, the change event fires on the view model and the new value is set.
In IE (9 for me) the event does not fire until you blur the input element.
I am working around it by adding a keypress event and manually doing
self.viewModel.set(valuePath, $(this).attr('value'));
when the enter key is pressed.
But its clunky and should not be necessary.
Is there some way to force IE to update the view model binding when the enter key is pressed?
Thanks.
In Chrome, if you are in the field and press enter, the change event fires on the view model and the new value is set.
In IE (9 for me) the event does not fire until you blur the input element.
I am working around it by adding a keypress event and manually doing
self.viewModel.set(valuePath, $(this).attr('value'));
when the enter key is pressed.
But its clunky and should not be necessary.
Is there some way to force IE to update the view model binding when the enter key is pressed?
Thanks.