fix copy and paste in chrome
This commit is contained in:
parent
9e8191df68
commit
ee6b54046f
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ var TextInput = function(parentNode, host) {
|
|||
}
|
||||
});
|
||||
|
||||
if ("onbeforecopy" in text) {
|
||||
if ("onbeforecopy" in text && typeof clipboardData !== "undefined") {
|
||||
event.addListener(text, "beforecopy", function(e) {
|
||||
var copyText = host.getCopyText();
|
||||
if(copyText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue