Disable spellcheck in textarea, set wrap property instead of attribute
This commit is contained in:
parent
49a120990f
commit
5e5d122332
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ var TextInput = function(parentNode, host) {
|
||||||
if (useragent.isTouchPad)
|
if (useragent.isTouchPad)
|
||||||
text.setAttribute("x-palm-disable-auto-cap", true);
|
text.setAttribute("x-palm-disable-auto-cap", true);
|
||||||
|
|
||||||
text.setAttribute("wrap", "off");
|
text.wrap = "off";
|
||||||
|
text.spellcheck = false;
|
||||||
|
|
||||||
text.style.top = "-2em";
|
text.style.top = "-2em";
|
||||||
parentNode.insertBefore(text, parentNode.firstChild);
|
parentNode.insertBefore(text, parentNode.firstChild);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue