{ "id": "139314", "key": "TIMOB-19164", "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": "2015-09-14T04:29:04.000+0000", "created": "2014-11-10T08:54:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "3.4.0", "3.4.1", "TCSupportTriage", "autocorrect", "ios8", "iphone", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-21T22:10:21.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 description\r\nThe textfield function \"getValue()\" returns the wrong (old) value, if the autocorrection replace the misspelled word.\r\n\r\nh2. Steps to reproduce\r\n1. Click into the textfield\r\n2. Enter a misspelled word like \"asdjflkjsd\"\r\n3. Click into the textfield as soon as the autocorrection appears\r\n4. Click the button to alert the wrong misspelled textfield value again\r\n\r\nh2. Test case\r\n{code:lang=javascript|title=app.js}\r\n(function() {\r\n\r\n\tvar win = Ti.UI.createWindow({backgroundColor:'#ffffff'});\r\n\r\n\tvar view = Ti.UI.createView({layout:'vertical'});\r\n\t\r\n\tvar button = Ti.UI.createButton({title:' Read textfield value ',top:20,borderRadius:5,borderColor:'#1C1C1C',backgroundColor:'#C0C0C0'});\r\n\t\r\n\tvar textfield = Ti.UI.createTextField({\r\n\t\tborderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\t\tautocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n top: 70,\r\n height: 30,\r\n width:Titanium.UI.FILL\r\n });\r\n\t\r\n var label = Ti.UI.createLabel({left:20,top:20,width:Titanium.UI.FILL,font:{fontSize:12},\r\n text:'PROBLEM DESCRIPTION\\n'\r\n +'The textfield function \"getValue()\" returns the wrong (old)value, if the autocorrection replace the misspelled word\\n\\n'\r\n +'STEPT TO REPRODUCE\\n'\r\n +'1. Click into the textfield\\n'\r\n +'2. Enter a misspelled word like \"asdjflkjsd\"\\n'\r\n +'3. Click into the textfield as soon as the autocorrection appears\\n'\r\n +'4. Click the button to alert the wrong misspelled textfield value again.\\n\\n'\r\n +'ENVIRONMENT\\n'\r\n +'Ti Mobile SDK: 3.4.0 GA, Ti Studio: 3.4.0.201409261227, iOS: 8.1 & 8.1.1, Device: iPhone 5 and 5S'});\t\r\n\t\r\n\tbutton.addEventListener('click',function(e){\r\n\t\talert(textfield.getValue());\r\n\t});\r\n\t\r\n\ttextfield.addEventListener('click',function(e){\r\n\t\tif(textfield.getValue() !== ''){\r\n\t\t\talert(textfield.getValue());\r\n\t\t}\r\n\t});\r\n\t\r\n\tview.add(textfield);\r\n\tview.add(button);\r\n\tview.add(label);\r\n\twin.add(view);\r\n\r\n \twin.open();\r\n})();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: textfield getValue() returns the misspelled text under iOS8", "creator": { "name": "Esche", "key": "esche", "displayName": "Markus Eschenbach", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Esche", "key": "esche", "displayName": "Markus Eschenbach", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.4.0 GA & 3.4.1 GA\r\nPlatform & version: & iOS 8.1 & iOS 8.1.1\r\nDevice Details: iPhone 5 and 5S\r\nHost Operating System: OS X 10.9 & OS X 10.10\r\nTitanium Studio version: 3.4.0.201409261227", "closedSprints": [ { "id": 481, "state": "closed", "name": "2015 Sprint 18 SDK", "startDate": "2015-08-29T00:30:25.440Z", "endDate": "2015-09-12T00:30:00.000Z", "completeDate": "2015-09-14T05:24:05.135Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "362077", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~ahossain], [~rtlechuga]: I've tested the issue using the latest 5.0 master and cannot reproduce a misspelled text. There is no autocorrection (and provide the property {{autocorrect}}). Please recheck the issue and if reproducible, attach some screens. Thank you guys!\r\n\r\nEDIT: Tested on both 8.X and 9.0", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-02T17:35:24.000+0000", "updated": "2015-09-02T17:35:46.000+0000" }, { "id": "414545", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:10:21.000+0000", "updated": "2017-03-21T22:10:21.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }