fix text input for iPad
This commit is contained in:
parent
2e35c0054b
commit
b0e6c5941c
1 changed files with 9 additions and 2 deletions
|
|
@ -59,10 +59,17 @@ var TextInput = function(parentNode, host) {
|
|||
if (value) {
|
||||
if (value.charCodeAt(value.length-1) == PLACEHOLDER.charCodeAt(0)) {
|
||||
value = value.slice(0, -1);
|
||||
if (value)
|
||||
if (value.length)
|
||||
host.onTextInput(value);
|
||||
} else
|
||||
}
|
||||
if (value.charCodeAt(0) == PLACEHOLDER.charCodeAt(0)) {
|
||||
value = value.slice(1, value.length);
|
||||
if (value.length)
|
||||
host.onTextInput(value);
|
||||
}
|
||||
else {
|
||||
host.onTextInput(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
copied = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue