Fix webkit text.oninput value changing workaround
This commit is contained in:
parent
46170cd781
commit
7cc9502539
1 changed files with 3 additions and 3 deletions
|
|
@ -78,12 +78,12 @@ var TextInput = function(parentNode, host) {
|
||||||
var tempStyle = '';
|
var tempStyle = '';
|
||||||
|
|
||||||
function resetValue() {
|
function resetValue() {
|
||||||
//http://code.google.com/p/chromium/issues/detail?id=76516
|
|
||||||
if (!useragent.isWebKit)
|
|
||||||
text.value = PLACEHOLDER;
|
text.value = PLACEHOLDER;
|
||||||
else
|
//http://code.google.com/p/chromium/issues/detail?id=76516
|
||||||
|
if (useragent.isWebKit)
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
text.value = PLACEHOLDER;
|
text.value = PLACEHOLDER;
|
||||||
|
resetSelection();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue