TextArea - Can not enter new line

You must Login before you can answer or comment on any questions.

How do you get new lines in the textarea? The user types text, hits the return key and no new line.

I assume this is a bug, although the bug has been marked as fixed.

http://jira.appcelerator.org/browse/TIMOB-470?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

Tried a number of different SDKs between 2.0 and 2.1.4 on iPhone and iPad, all have the issue.

Is there some hidden setting I am missing?

var win = Ti.UI.createWindow();
 
var ta = Ti.UI.createTextArea({
    left: 20,
    right: 20,
    height: 400,
    // enableReturnKey: true,
    // returnKeyType: Ti.UI.RETURNKEY_DEFAULT,
    supressReturn: false,
});
win.add(ta);
 
win.open();

1 Answer

Accepted Answer

Check the typo: suppressReturn:false,

— answered 8 months ago by Adam Paxton
answer permalink
2 Comments
  • Thank you, major doh moment for me. I blame it on it being 5 to going home time on a friday.

    — commented 8 months ago by Nicholas Cooper

  • Haha, no problem. Still morning here, so I'm fresh!

    — commented 8 months ago by Adam Paxton

Your Answer

Think you can help? Login to answer this question!