Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngModel): use keydown/change events on IE9 instead of input #936

Merged
merged 2 commits into from
May 7, 2012

Conversation

IgorMinar
Copy link
Contributor

On IE9 the input event is not fired when backspace or delete key are pressed or when
cut is performed. This makes listening on the input event unreliable and therefore
it's better for us to just use keydown/change events instead.

Closes #879

@IgorMinar
Copy link
Contributor Author

tests on ie are failing now. I'll look into it. it's likely something silly.

@vojtajina
Copy link
Contributor

LGTM

The tests are failing, because there are conditions in the specs - eg. https://github.com/angular/angular.js/blob/master/test/ng/directive/inputSpec.js#L257

Now, we fire input on IE9, but it binds keydown...

On IE9 the input event is not fired when backspace or delete key are pressed or when
cut is performed. This makes listening on the input event unreliable and therefore
it's better for us to just use keydown/change events instead.

Closes angular#879
IE9 ignores setAttribute('src', val) calls on img if "ng:src" attribute
is present. It only fetches the image if element property is updated as well.

Closes angular#935
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE9 Backspace bug
2 participants