{ "id": "86423", "key": "TIMOB-7637", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-12T10:56:24.000+0000", "created": "2012-02-13T12:44:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15163", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "80420", "key": "TIMOB-5309", "fields": { "summary": "iOS: TextField maxLength Property", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:31:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Put following in app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar tf = Ti.UI.createTextField({\r\n\tvalue:'SAMPLE',\r\n\tmaxLength:20,\r\n\ttop:20,\r\n\tleft:20,\r\n\twidth:300,\r\n\theight:60,\r\n\tborderStyle:Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\nwin.add(tf);\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle:'Increase maxLength',\r\n\twidth:200,\r\n\theight:40,\r\n\tbottom:60\r\n});\r\nb.addEventListener('click', function(e) {\r\n\ttf.maxLength += 5;\r\n\tTi.API.info('maxLength: '+tf.maxLength);\r\n});\r\nwin.add(b);\r\n\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle:'Unlimited length',\r\n\twidth:200,\r\n\theight:40,\r\n\tbottom:120\r\n});\r\nb2.addEventListener('click', function(e) {\r\n\ttf.maxLength = -1;\r\n});\r\nwin.add(b2);\r\n\r\nwin.open();\r\n{code}\r\n\r\n2. Type into the text field \r\n\r\nExpected result:\r\n\r\nAfter Step 2 user can enter 20 characters or less\r\n\r\nActual result: \r\n\r\nAfter Step 2 user can enter unlimited numbers of characters \r\n\r\nNote: Tested on 1.8.1 build running rhino. The bug occurs in this build too.", "attachment": [], "flagged": false, "summary": "Android: TextField - Ability to enter unlimited numbers of characters without clicking Unlimited length or Increase maxLength", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.9.0.v20120207124634\r\nJavascript Engine: Rhino\r\nPlatform & version/Device Details: Android 3.1/LG-V909; Android 4.0.2/Galaxy Nexus; Android 2.3.4/HTC T-mobile; Android 3.2/Samsung GT-P7510\r\nTitanium Studio version: 1.0.8.201201262211", "comment": { "comments": [ { "id": "241727", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem cannot reproduce with release 3.0.2 ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T10:56:24.000+0000", "updated": "2013-03-12T10:56:24.000+0000" }, { "id": "414459", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:31:45.000+0000", "updated": "2017-03-21T21:31:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }