fix #906 can't input chinese in ie9
This commit is contained in:
parent
b0a43790b4
commit
bf34500927
1 changed files with 6 additions and 0 deletions
|
|
@ -380,7 +380,13 @@ var TextInput = function(parentNode, host) {
|
|||
var onCompositionEnd = function(e) {
|
||||
var c = inComposition;
|
||||
inComposition = false;
|
||||
var timer = setTimeout(function() {
|
||||
var str = text.value.replace(/\x01/g, "");
|
||||
if (!inComposition && str == c.lastValue)
|
||||
resetValue();
|
||||
});
|
||||
inputHandler = function compositionInputHandler(str) {
|
||||
clearTimeout(timer);
|
||||
str = str.replace(/\x01/g, "");
|
||||
if (str == c.lastValue)
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue