Restore textarea selection after paste in IE
This commit is contained in:
parent
2f01870f05
commit
81f58c4552
1 changed files with 2 additions and 0 deletions
|
|
@ -239,6 +239,8 @@ var TextInput = function(parentNode, host) {
|
|||
var data = clipboardData.getData("Text");
|
||||
if (data)
|
||||
host.onPaste(data);
|
||||
if (useragent.isIE)
|
||||
setTimeout(resetSelection);
|
||||
event.preventDefault(e);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue