Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'bartes-input_event' into bartes

  • Loading branch information...
commit cbee99818fda7239bed7b42ac248e103dab6f716 2 parents 625bf45 + 0e9f956
bartes authored
Showing with 6 additions and 1 deletion.
  1. +1 −1  src/widget/input.js
  2. +5 −0 test/widget/inputSpec.js
View
2  src/widget/input.js
@@ -822,7 +822,7 @@ angularWidget('input', function(inputElement){
inputElement.val(widget.$viewValue || '');
};
- inputElement.bind('keydown change', function(event){
+ inputElement.bind('keydown change input', function(event){
var key = event.keyCode;
if (/*command*/ key != 91 &&
/*modifiers*/ !(15 < key && key < 19) &&
View
5 test/widget/inputSpec.js
@@ -156,6 +156,11 @@ describe('widget: input', function() {
browserTrigger(element, 'change');
defer.flush();
expect(scope.name).toEqual('Kai');
+
+ element.val('Lunar');
+ browserTrigger(element, 'input');
+ defer.flush();
+ expect(scope.name).toEqual('Lunar');
});
Please sign in to comment.
Something went wrong with that request. Please try again.