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

Input ng-model fails to update on paste event in IE #1462

Closed
leefernandes opened this issue Oct 16, 2012 · 4 comments
Closed

Input ng-model fails to update on paste event in IE #1462

leefernandes opened this issue Oct 16, 2012 · 4 comments

Comments

@leefernandes
Copy link
Contributor

http://jsfiddle.net/ItsLeeOwen/nqS7n/

Open IE 8 or IE 9. Copy a string, and paste into the input. The model does not update until a key event.

@msgilligan
Copy link
Contributor

This could be related to: #1460

@pkozlowski-opensource
Copy link
Member

@itsleeowen Just checked with 1.0.3 and it seems to be OK (http://jsfiddle.net/nqS7n/3/). The funny thing is that it works for me with 1.0.2 as well... Tested on IE8 and IE9. Could you check once again on your side?

@pkozlowski-opensource
Copy link
Member

@itsleeowen As indicated in my previous comment it seems to be working OK with the 1.0.3 (see the jsFiddle). Closing for now, please reopen if you still face issues (in this case please include detailed steps to reproduce).

@markdalgleish
Copy link
Contributor

I think this issue occurs when you right click and paste using the context menu. I'm having the same problem in my Angular app. Keyboard shortcut paste works fine.

markdalgleish added a commit to markdalgleish/angular.js that referenced this issue Mar 21, 2013
In IE the model is not updated when the input value is modified using the context
menu, e.g. pasting from the clipboard, or cutting all or part of the current value.
To capture these changes, we bind to the proprietary 'paste' and 'cut' events.

Closes angular#1462
markdalgleish added a commit to markdalgleish/angular.js that referenced this issue Apr 16, 2013
In IE the model is not updated when the input value is modified using the context
menu, e.g. pasting from the clipboard, or cutting all or part of the current value.
To capture these changes, we bind to the proprietary 'paste' and 'cut' events.

Closes angular#1462
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue Apr 17, 2013
In IE the model is not updated when the input value is modified using the context
menu, e.g. pasting from the clipboard, or cutting all or part of the current value.
To capture these changes, we bind to the proprietary 'paste' and 'cut' events.

Closes angular#1462
petebacondarwin pushed a commit that referenced this issue Apr 17, 2013
In IE the model is not updated when the input value is modified using the context
menu, e.g. pasting from the clipboard, or cutting all or part of the current value.
To capture these changes, we bind to the proprietary 'paste' and 'cut' events.

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

Successfully merging a pull request may close this issue.

4 participants