{ "id": "88827", "key": "TIMOB-8303", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-19T16:56:51.000+0000", "created": "2012-03-26T08:28:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_textarea", "parity", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "17058", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "86722", "key": "TIDOC-461", "fields": { "summary": "APIDoc: add hasText method in Titanium.UI.TextField, TextArea", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17060", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "61628", "key": "TIMOB-996", "fields": { "summary": "Android: Text Field/Area needs hasText method", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "22398", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104150", "key": "TIMOB-11608", "fields": { "summary": "Android: TextField and TextArea - Black stripe appears above the text field at the bottom of the screen", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:34:47.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem\r\n\r\nTextField and TextArea hasText() method not functioning.\r\n\r\nh2. Test Case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\texitOnClose : true,\r\n\tfullscreen : false,\r\n\tlayout : 'vertical',\r\n\ttitle : 'hasText Demo'\r\n});\r\n \r\nvar textField = Ti.UI.createTextField({\r\n    color: '#336699',\r\n    backgroundColor:'#eee',\r\n    top: 10, left: 10,\r\n    width: 250, height: 60,\r\n    borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\nwin.add(textField);\r\n \r\nvar textArea = Ti.UI.createTextArea({\r\n    borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n    backgroundColor:'#eee',\r\n    color: '#336699',\r\n    top: 10, left: 10,\r\n    width: 250, height: 200\r\n});\r\nwin.add(textArea);\r\n \r\n \r\nwin.open();\r\n \r\ntextField.addEventListener('change', function(e){\r\n    Ti.API.info('hasText? ' + e.source.hasText());\r\n});\r\n \r\ntextArea.addEventListener('change', function(e){\r\n    Ti.API.info('hasText? ' + e.source.hasText());\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Text Field/Area needs hasText method", "creator": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "188621", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1841", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T11:26:49.000+0000", "updated": "2012-03-26T11:26:49.000+0000" }, { "id": "189587", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged, not sure on the release number.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T17:46:25.000+0000", "updated": "2012-04-02T17:46:25.000+0000" }, { "id": "193903", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "hasText does still not work. I've added a test case to prove this.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-06T03:13:15.000+0000", "updated": "2012-05-06T03:13:15.000+0000" }, { "id": "199262", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Paul's test code was incorrect--was attempting to call hasText() on the event object, rather than the text field/text area itself.\r\n\r\nUpdated test code works on iOS and Android. MW has an issue I'll file separately.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T16:56:51.000+0000", "updated": "2012-06-19T16:56:51.000+0000" }, { "id": "199914", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206211609\r\nTi Mobile SDK 2.1.0.v20120622174154 hash rdc9dfbe5\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nVerified expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T13:26:44.000+0000", "updated": "2012-06-23T13:26:44.000+0000" }, { "id": "278596", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4876", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:34:47.000+0000", "updated": "2013-11-07T05:34:47.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }