fix weird ie8 bug
This commit is contained in:
parent
a4a30b6665
commit
373693a1c4
1 changed files with 6 additions and 1 deletions
|
|
@ -176,10 +176,15 @@ var TextInput = function(parentNode, host) {
|
||||||
if (inComposition && (!text.value || keytable[e.keyCode]))
|
if (inComposition && (!text.value || keytable[e.keyCode]))
|
||||||
setTimeout(onCompositionEnd, 0);
|
setTimeout(onCompositionEnd, 0);
|
||||||
if ((text.value.charCodeAt(0)||0) < 129) {
|
if ((text.value.charCodeAt(0)||0) < 129) {
|
||||||
return;
|
return syncProperty.call();
|
||||||
}
|
}
|
||||||
inComposition ? onCompositionUpdate() : onCompositionStart();
|
inComposition ? onCompositionUpdate() : onCompositionStart();
|
||||||
});
|
});
|
||||||
|
// when user presses backspace after focusing the editor
|
||||||
|
// propertychange isn't called for the next character
|
||||||
|
event.addListener(text, "keydown", function (e) {
|
||||||
|
syncProperty.schedule(50);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var onSelect = function(e) {
|
var onSelect = function(e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue