[AC-2665] [ios] TextField/TextArea: settings maxLength without value on creation crashes
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-08-17T13:54:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | maxlength, textarea, textfield |
| Reporter | Martin Guillon |
| Assignee | Mauro Parra-Miranda |
| Created | 2012-08-14T01:24:22.000+0000 |
| Updated | 2016-03-08T07:41:45.000+0000 |
Description
https://github.com/appcelerator/titanium_mobile/blob/cdcc6408004f16f3fd9919bfc13b66e176a1713b/iphone/Classes/TiUITextWidget.m
This created a crash when you do
var win = Ti.UI.createWindow();
var text = Ti.UI.createTextField({
maxLength:1});
win.add(text);
win.open();
Pull request coming
pull request https://github.com/appcelerator/titanium_mobile/pull/2738
Pull merged in. Resolving ticket.