use setAttribute instead of autocorrect setter, since the setter doesn't work on ipad
This commit is contained in:
parent
e217418d39
commit
e54882db64
1 changed files with 4 additions and 4 deletions
|
|
@ -45,10 +45,10 @@ var TextInput = function(parentNode, host) {
|
|||
if (useragent.isTouchPad)
|
||||
text.setAttribute("x-palm-disable-auto-cap", true);
|
||||
|
||||
text.wrap = "off";
|
||||
text.autocorrect = "off";
|
||||
text.autocapitalize = "off";
|
||||
text.spellcheck = false;
|
||||
text.setAttribute("wrap", "off");
|
||||
text.setAttribute("autocorrect", "off");
|
||||
text.setAttribute("autocapitalize", "off");
|
||||
text.setAttribute("spellcheck", false);
|
||||
|
||||
text.style.opacity = "0";
|
||||
if (useragent.isOldIE) text.style.top = "-100px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue