Fix webkit text.oninput value changing workaround

This commit is contained in:
DanyaPostfactum 2012-10-21 04:48:12 +11:00 • committed by nightwing
commit a49a0b9ad3

View file

@ -78,12 +78,12 @@ var TextInput = function(parentNode, host) {
var tempStyle = '';
function resetValue() {
text.value = PLACEHOLDER;
//http://code.google.com/p/chromium/issues/detail?id=76516
if (!useragent.isWebKit)
text.value = PLACEHOLDER;
else
if (useragent.isWebKit)
setTimeout(function(){
text.value = PLACEHOLDER;
resetSelection();
});
};