{ "id": "115870", "key": "TIMOB-14200", "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": [], "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": "2017-06-28T20:10:59.000+0000", "created": "2013-06-13T10:43:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-28T20:10:59.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": "While using the keyboard to enter values in picker, and entering some value in last field then tapping done to dismiss the keyboard; the value though visible in the field (year column) but the picker's \"value\" property does not reflects the same, and therefore selected value (on UI) is not reflected in the field above.\r\nIf the user taps on any other field, so that year field loose focus, changed value get registered and is set by the picker in the above text field.\r\nThis seems to be a defect at the SDK level. The same problem exists for TimePicker as well for the minute field.\r\n\r\nFollowing is code snippet containing date picker code, same happens with time picker also:\r\n\r\n----------------------------------------\r\nvar moment = require('alloy/moment');\r\n\r\n\r\nvar win = Ti.UI.createWindow({\r\n\texitOnClose : true,\r\n\tlayout : 'vertical',\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL,\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar text = Ti.UI.createTextField({\r\n\thintText : 'ENTER YOUR DATE OF BIRTH',\r\n\ttop : 10,\r\n\twidth : Ti.UI.SIZE,\r\n\theight : 120,\r\n\tleft : 0\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\ttype : Ti.UI.PICKER_TYPE_DATE,\r\n\ttop : 50,\r\n\tvisible : false\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle : 'Select',\r\n\ttop : 100,\r\n\twidth:Ti.UI.SIZE,\r\n\theight:Ti.UI.SIZE\r\n})\r\n\r\ntext.addEventListener('click', function(e) {\r\n\tpicker.visible = true;\r\n})\r\n\r\npicker.addEventListener('change', function(e) {\r\n\tTi.API.info(\"User selected date: \" + e.value.toLocaleString());\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\tvar labelText = moment(picker.value.toString(), 'ddd MMM DD YYYY HH:mm:ss Z').format('MMMM DD, YYYY');\r\n\ttext.value = labelText;\r\n});\r\n\r\nwin.add(text);\r\nwin.add(picker);\r\nwin.add(button);\r\nwin.open();\r\n----------------------------------------\r\n\r\nScreenshots attached display the wrong value selected within the textField", "attachment": [ { "id": "39801", "filename": "datePickerIssue.png", "author": { "name": "psrivastava", "key": "psrivastava", "displayName": "Priti Srivastava", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-13T10:43:17.000+0000", "size": 51834, "mimeType": "image/png" }, { "id": "39802", "filename": "timePickerIssue.png", "author": { "name": "psrivastava", "key": "psrivastava", "displayName": "Priti Srivastava", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-13T10:43:17.000+0000", "size": 50527, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Date Picker and Time Picker change event not firing when value changed by pressing \"done\" through keyboard", "creator": { "name": "psrivastava", "key": "psrivastava", "displayName": "Priti Srivastava", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "psrivastava", "key": "psrivastava", "displayName": "Priti Srivastava", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android: 4.1.1\r\nTitanium SDK: 3.1.0 GA\r\nDevice: Samsung Galaxy S3", "comment": { "comments": [ { "id": "423077", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nTi SDK 6.1.1.v20170626160851\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-28T20:10:59.000+0000", "updated": "2017-06-28T20:10:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }