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");
|
var data = clipboardData.getData("Text");
|
||||||
if (data)
|
if (data)
|
||||||
host.onPaste(data);
|
host.onPaste(data);
|
||||||
|
if (useragent.isIE)
|
||||||
|
setTimeout(resetSelection);
|
||||||
event.preventDefault(e);
|
event.preventDefault(e);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue