{ "id": "171857", "key": "TIMOB-26167", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-07-03T12:07:42.000+0000", "created": "2018-06-28T18:59:46.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ScrollView", "TextArea", "TextField", "android", "regression" ], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-07-03T21:47:20.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": "*Summary:*\r\nAs of Titanium 7.3.0 (not released yet), Android's TextField/TextArea view cannot be edited while they're in a ScrollView. When tapping on them, they immediately drop the focus.\r\n\r\nThis is not an issue in Titanium 7.2.0. I've confirmed it.\r\n\r\n*Steps to reproduce:*\r\n# Create a classic app with the below code targeting Titanium 7.3.0.\r\n# Build and run on Android.\r\n# Tap on a TextArea.\r\n# Notice that the virtual keyboard does not appear. You are unable to edit it.\r\n# Scroll down to the bottom.\r\n# Tap on a TextField.\r\n# Notice that the virtual keyboard does not appear. You are unable to edit it.\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow();\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tshowVerticalScrollIndicator: true,\r\n\tlayout: \"vertical\",\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n});\r\nfor (var index = 1; index <= 20; index++) {\r\n\tvar row = Ti.UI.createView({\r\n\t\tlayout: \"horizontal\",\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: Ti.UI.SIZE,\r\n\t});\r\n\trow.add(Ti.UI.createLabel({\r\n\t\ttext: \"Row \" + index.toString(),\r\n\t\tleft: \"5dp\",\r\n\t}));\r\n\tvar fieldCreator = (index <= 10) ? Ti.UI.createTextArea : Ti.UI.createTextField;\r\n\trow.add(fieldCreator({\r\n\t\tvalue: \"Welcome to the Appcelerator Platform! The Appcelerator Platform helps you develop cross-platform mobile applications using the Titanium SDK, Alloy, Appcelerator Studio and the Appcelerator CLI, then lets you manage the entire lifecycle of the application with debugging, testing, deploying, crash monitoring and analytic data collection.\",\r\n\t\thintText: \"Hint Text\",\r\n\t\thintType: Ti.UI.HINT_TYPE_ANIMATED,\r\n\t\tleft: \"5dp\",\r\n\t\tright: \"5dp\",\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: (fieldCreator == Ti.UI.createTextArea) ? \"100dp\" : Ti.UI.SIZE,\r\n\t}));\r\n\tscrollView.add(row);\r\n}\r\nwindow.add(scrollView);\r\nwindow.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Cannot edit TextField/TextArea while in a ScrollView as of 7.3.0", "creator": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "subtasks": [], "reporter": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "environment": null, "closedSprints": [ { "id": 1045, "state": "closed", "name": "2018 Sprint 13 SDK", "startDate": "2018-06-17T20:47:13.621Z", "endDate": "2018-07-01T20:47:00.000Z", "completeDate": "2018-07-02T18:40:05.029Z", "originBoardId": 114 }, { "id": 1050, "state": "closed", "name": "2018 Sprint 14 SDK", "startDate": "2018-07-01T18:40:57.193Z", "endDate": "2018-07-15T18:40:00.000Z", "completeDate": "2018-07-16T03:27:08.720Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438838", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is this SDK 7.3+ only? cc [~jquick]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-28T21:04:19.000+0000", "updated": "2018-06-28T21:04:19.000+0000" }, { "id": "438846", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh bummer. Yes, I'm able to reproduce this issue. It happens to TextFields and TextAreas. I've confirmed that this is only an issue in 7.3.0, which is not released yet. It's not an issue in 7.2.0. A 7.3.0 PR must of broken it. I'll hunt it down.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-28T23:36:35.000+0000", "updated": "2018-06-28T23:36:35.000+0000" }, { "id": "438849", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed that the following PR has caused the regression...\r\nhttps://github.com/appcelerator/titanium_mobile/pull/9901\r\n\r\n[~ybanev], we're going to have to find an alternate solution for [TIMOB-25819]. The {{FOCUS_BLOCK_DESCENDANTS}} setting is preventing TextFields and TextAreas from receiving the focus, which prevents them from being edited.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-29T00:58:42.000+0000", "updated": "2018-06-29T00:58:42.000+0000" }, { "id": "438851", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have a solution that solves this ticket's issue and solves [TIMOB-25819] as well. I'll submit the PR tomorrow.\r\n[~ahmed.mohamed20320], thanks for reporting this issue.\r\n\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-29T02:53:38.000+0000", "updated": "2018-06-29T02:53:38.000+0000" }, { "id": "438877", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10145", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-30T03:27:10.000+0000", "updated": "2018-06-30T03:27:10.000+0000" }, { "id": "438946", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (7.3.x): https://github.com/appcelerator/titanium_mobile/pull/10149", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-02T22:17:48.000+0000", "updated": "2018-07-02T22:17:48.000+0000" }, { "id": "438992", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.3.0.v20180703051211.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.1.0.201806291005\r\nSDK Ver: 7.3.0.v20180703051211\r\nOS Ver: 4.2.13\r\nXcode Ver: 7.0.4\r\nAppc NPM: 1.1.3\r\nAppc CLI: 10.13.5\r\nDaemon Ver: Xcode 9.4.1\r\nTi CLI Ver: 5.1.1\r\nAlloy Ver: 1.12.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 10.0.1\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Nexus 6P --- Android 8.1.0\r\nEmulator: ⇨ Android 4.1.2\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-03T21:47:15.000+0000", "updated": "2018-07-03T21:47:15.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }