diff options
| author | bartes | 2011-11-18 20:10:04 +0100 | 
|---|---|---|
| committer | Igor Minar | 2011-12-07 13:07:20 -0800 | 
| commit | 0c534644bc1908fad4e8df5754d3ec224bc7ed7e (patch) | |
| tree | 86fb935fc984b1f9ecbae2ed66e1e62f348bf33d /src/widget/input.js | |
| parent | c28662d28dec613876bebacb2df994722c09f3fb (diff) | |
| download | angular.js-0c534644bc1908fad4e8df5754d3ec224bc7ed7e.tar.bz2 | |
fix(input): bind inputs to the 'input' event
The input event is fired on all non-ie browsers whenever the contents of an input
field changes. This means that we now support cut&paste via mouse which
was previously unsupported.
IE8 and older don't support this events and IE9 has a problematic
support for it, so we can't rely solely on this event and drop keydown
and change events.
Diffstat (limited to 'src/widget/input.js')
| -rw-r--r-- | src/widget/input.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/widget/input.js b/src/widget/input.js index 3f25f09f..a744e567 100644 --- a/src/widget/input.js +++ b/src/widget/input.js @@ -817,7 +817,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) && | 
