{ "id": "133257", "key": "TIMOB-17343", "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": "2016-03-08T03:34:57.000+0000", "created": "2014-07-16T12:21:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Textfield", "ios", "onBlur" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:44:42.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": "onBlur event on Textfield fired twice when click return button on key borad.\r\n\r\nHere is the latest test case for this problem.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\n \r\nvar plainTemplate = {\r\n childTemplates : [{\r\n type : 'Ti.UI.TextField',\r\n bindId : 'button',\r\n properties : {\r\n width : '80dp',\r\n height : '30dp',\r\n right : '10dp',\r\n value : \"122222\",\r\n borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n },\r\n events : {\r\n blur : function() {\r\n alert(\"???\");\r\n }\r\n }\r\n }]\r\n};\r\n \r\nvar listView = Ti.UI.createListView({\r\n templates : {\r\n 'plain' : plainTemplate\r\n },\r\n defaultItemTemplate : 'plain'\r\n});\r\n \r\nvar data = [];\r\nfor (var i = 0; i < 10; i++) {\r\n data.push({\r\n rowtitle : {\r\n text : 'Row ' + (i + 1)\r\n },\r\n properties : {\r\n itemId : 'row' + (i + 1),\r\n accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE\r\n }\r\n });\r\n}\r\n \r\nvar section = Ti.UI.createListSection({\r\n items : data\r\n});\r\nlistView.sections = [section];\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: onBlur event on Textfield fired twice when click return button on keyboard", "creator": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.3\r\nALLOY 1.3.1\r\nIOS 7.1", "closedSprints": [ { "id": 503, "state": "closed", "name": "2015 Sprint 21 SDK", "startDate": "2015-10-10T00:32:18.011Z", "endDate": "2015-10-24T00:32:00.000Z", "completeDate": "2015-10-26T02:20:47.579Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "314577", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Can't reproduce.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T06:16:33.000+0000", "updated": "2014-07-17T06:16:33.000+0000" }, { "id": "314580", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just extracted what I think possible to recreate the bug from my project and pasted the code here - have not tested the sample code here.\r\n\r\nI will modify the code and update it.\r\n\r\nThanks", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T06:27:27.000+0000", "updated": "2014-07-17T06:27:27.000+0000" }, { "id": "314592", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar plainTemplate = {\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.TextField',\r\n\t\tbindId : 'button',\r\n\t\tproperties : {\r\n\t\t\twidth : '80dp',\r\n\t\t\theight : '30dp',\r\n\t\t\tright : '10dp',\r\n\t\t\tvalue : \"122222\",\r\n\t\t\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n\t\t},\r\n\t\tevents : {\r\n\t\t\tblur : function() {\r\n\t\t\t\talert(\"???\");\r\n\t\t\t}\r\n\t\t}\r\n\t}]\r\n};\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttemplates : {\r\n\t\t'plain' : plainTemplate\r\n\t},\r\n\tdefaultItemTemplate : 'plain'\r\n});\r\n\r\nvar data = [];\r\nfor (var i = 0; i < 10; i++) {\r\n\tdata.push({\r\n\t\trowtitle : {\r\n\t\t\ttext : 'Row ' + (i + 1)\r\n\t\t},\r\n\t\tproperties : {\r\n\t\t\titemId : 'row' + (i + 1),\r\n\t\t\taccessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE\r\n\t\t}\r\n\t});\r\n}\r\n\r\nvar section = Ti.UI.createListSection({\r\n\titems : data\r\n});\r\nlistView.sections = [section];\r\nwin.add(listView);\r\nwin.open();\r\n\r\n\r\n\r\n{code}", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T07:11:30.000+0000", "updated": "2014-07-17T07:11:30.000+0000" }, { "id": "314595", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The above code snippet can definitely generate the issue - tested", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T07:19:14.000+0000", "updated": "2014-07-17T07:19:14.000+0000" }, { "id": "314597", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nWhat kind of device did you use when you find the problem, as I can't reproduce it with iOS 7.1 simulator. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T07:23:21.000+0000", "updated": "2014-07-17T07:23:21.000+0000" }, { "id": "314600", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS 7.1. Are you using the updated code?", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T07:27:51.000+0000", "updated": "2014-07-17T07:27:51.000+0000" }, { "id": "314601", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be a general problem not a ALLOY specific one. Just use the updated code and you can readily reproduce it.\r\n\r\nThanks", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T07:29:05.000+0000", "updated": "2014-07-17T07:29:05.000+0000" }, { "id": "314604", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "I WAS using the updated code. still can't reproduce your problem. Even tried with different simulator, different SDK and also iphone 4 device, none of them can reproduce your problem.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T07:40:55.000+0000", "updated": "2014-07-17T07:40:55.000+0000" }, { "id": "314605", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Would you please try to clean the project and restart the studio and simulator. See if the problem still appears.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T07:42:27.000+0000", "updated": "2014-07-17T07:42:27.000+0000" }, { "id": "314624", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What is your testing environment ? Ti SDK?", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T09:45:31.000+0000", "updated": "2014-07-17T09:45:31.000+0000" }, { "id": "314625", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": " ye,I tried SDK 3.2.2, 3.2.3 and 3.3.0. all same.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T09:48:10.000+0000", "updated": "2014-07-17T09:48:10.000+0000" }, { "id": "314627", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bizarre!~ Let me clean the project and give it another go. Will update you shortly", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T09:50:12.000+0000", "updated": "2014-07-17T09:50:12.000+0000" }, { "id": "314629", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried clean the project still have this issue.\r\n\r\nIssue is firstly focus on anyone of these textfields and hit search/done button on textfield will trigger blur event twice..... You will see ??? two times....", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T10:00:52.000+0000", "updated": "2014-07-17T10:00:52.000+0000" }, { "id": "314630", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I take a screen recording but unable to attach it to this ticket since it is being closed....", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T10:02:38.000+0000", "updated": "2014-07-17T10:02:38.000+0000" }, { "id": "314632", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Oh I see you problem. I thought you just want the event lost the focus. Now I can reproduce the problem. I will forward this ticket to our engineer team. Thank you for your case.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T10:07:45.000+0000", "updated": "2014-07-17T10:07:45.000+0000" }, { "id": "314633", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Awesome, hopefully it could get sorted out by the next sub-version release of Ti.SDK.\r\n\r\nThanks\r\n\r\nBTW, whereabouts are you? US? Then would`t be too late for you???", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T10:12:38.000+0000", "updated": "2014-07-17T10:12:38.000+0000" }, { "id": "314634", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As a side note, return event will fire only once as opposed to blur..... Interesting.....", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-17T10:14:17.000+0000", "updated": "2014-07-17T10:14:17.000+0000" }, { "id": "364781", "author": { "name": "johnjardin", "key": "johnjardin", "displayName": "John Jardin", "active": true, "timeZone": "Africa/Johannesburg" }, "body": "Hi there. I see this is listed as a bug (with a low priority), but I must say this is quite a serious issue. It only started when my app (using iOS7 SDK) was being used on iOS 8 Operating System.\r\n\r\nI then re-compiled the app to use iOS 8.2 SDK, but the issue remains.\r\n\r\nI use this scenario for field validation. What happens now is if the user enters something in the field where validation fails, the Return event triggers once, whilst the Blur event triggers twice.", "updateAuthor": { "name": "johnjardin", "key": "johnjardin", "displayName": "John Jardin", "active": true, "timeZone": "Africa/Johannesburg" }, "created": "2015-09-23T11:53:14.000+0000", "updated": "2015-09-23T11:53:14.000+0000" }, { "id": "373121", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": " Tested the Issue with the newest SDK with iOS 8.4 and higher. The issue doesn't seem to be reproducible, using the test code provided.Have you tried running the app on the newest [SDK|http://builds.appcelerator.com.s3.amazonaws.com/index.html#5_1_X] ?", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-16T18:31:32.000+0000", "updated": "2015-12-16T18:33:06.000+0000" }, { "id": "416616", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Cannot Reproduce\", if you encounter any further problems please file a new ticket. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:44:42.000+0000", "updated": "2017-03-31T22:44:42.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }