Fix webkit text.oninput value changing workaround
This commit is contained in:
parent
38ef17528b
commit
a49a0b9ad3
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue