fix cursor remains hidden if textarea is autofocused

This commit is contained in:
nightwing 2012-09-16 22:41:35 +04:00
commit 1a603dfa4e

View file

@ -51,8 +51,10 @@ var TextInput = function(parentNode, host) {
text.style.top = "-2em";
parentNode.insertBefore(text, parentNode.firstChild);
var PLACEHOLDER = useragent.isIE ? "\x01" : "\x01";
sendText();
var PLACEHOLDER = useragent.isIE ? "\x01" : "\x00";
reset(true);
if (isFocused())
host.onFocus();
var inCompostion = false;
var copied = false;