{ "id": "174097", "key": "TIMOB-27379", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2019-09-10T06:55:28.000+0000", "created": "2019-09-05T06:28:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-02T23:06:32.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "For a TextField with hint text, if the 'passwordMask' property is true, the hint text is not shown when the TextField is cleared programmatically like on click of a button like below.\r\n{code}\r\nbtnReset.addEventListener('click', function (e) {\r\ntxtUsername.value = \"\";\r\ntxtPassword.value = \"\";\r\n});\r\n{code}\r\nBut, it works fine case of manual clearing of the same TextField. Also, for a TextField with 'passwordMask' property as false, it works without any issue in both manual and programatic clearing of the field.The customer is facing issue on *Windows 10 version 1809 desktop*.It Works fine for Android and iOS.\r\n\r\nA screenshot is posted to the click of Reset button. On that button click, text fields are cleared. But, hint text is restored only for the Username field and not for Password field.\r\n\r\n*Testing Environment:*\r\n\r\n\r\n{code}\r\n\r\nSDK version: 7.2.0 GA,8.1.1.GA,8.0.2.GA, \r\n\r\nCLI version: 7.0.12 \r\n\r\nDevice: Windows 10 version 1809 desktop.\r\n{code}\r\n\r\n\r\n*Sample test case:*\r\n{code}\r\n\r\nAppStart();\r\nfunction AppStart() \r\n{\r\nvar loginWindow = createLogin(\"Login\", \"Login to App\");\r\nloginWindow.open();\r\n}\r\nfunction createLogin(title, message) {\r\nvar win = Ti.UI.createWindow({\r\ntitle: title,\r\nbackgroundColor: '#fff'\r\n});\r\nvar label = Ti.UI.createLabel({\r\ntext: message,\r\ncolor: \"#333\",\r\nfont: {\r\nfontSize: 20\r\n}\r\n});\r\nlabel.top = \"10%\";\r\nlabel.left = \"5%\";\r\nlabel.height = \"6%\";\r\nlabel.width = \"35%\";\r\nlabel.title = \"Login\";\r\nwin.add(label);\r\n\r\nvar txtUsername = Ti.UI.createTextField({ top: \"20%\", left: \"5%\", height: \"6%\", width: \"55%\", passwordMask: false, paddingLeft: 15 });\r\nvar txtPassword = Ti.UI.createTextField({ top: \"30%\", left: \"5%\", height: \"6%\", width: \"55%\", passwordMask: true, paddingLeft: 15 });\r\ntxtUsername.hintText = 'Username';\r\ntxtPassword.hintText = 'Password';\r\nwin.add(txtUsername);\r\nwin.add(txtPassword);\r\nvar btnReset = Ti.UI.createButton();\r\nbtnReset.top = \"40%\";\r\nbtnReset.left = \"35%\";\r\nbtnReset.height = \"6%\";\r\nbtnReset.width = \"25%\";\r\nbtnReset.title = \"Reset\";\r\n\r\nbtnReset.addEventListener('click', function (e) {\r\nResetFields();\r\n});\r\n\r\nfunction ResetFields()\r\n{\r\ntxtUsername.value = \"\";\r\ntxtPassword.value = \"\";\r\n}\r\nwin.add(btnReset);\r\n\r\nreturn win;\r\n}\r\n\r\n{code}\r\n\r\n\r\n\r\n*Test Steps:*\r\n\r\n1. Open the app.\r\n2. Enter some values in Username and Password fields.\r\n3.Click the Reset button which programmatically clear the Text Fields.\r\n\r\n\r\n\r\n*Test Output:*\r\n\r\n*Curent Result:* Password field cleared and hint text is not shown.\r\n*Expected Result:* Password field cleared and hint text to be shown.\r\n\r\n", "attachment": [ { "id": "66917", "filename": "image.png", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T06:27:58.000+0000", "size": 13849, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows:Using hint text on Textfield and 'passwordMask' property is true, the hint text is not shown when the TextField is cleared programmatically", "creator": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK version: 7.2.0 GA,,8.0.2.GA,8.1.1.GA\r\n\r\nCLI version: 7.0.12 \r\n\r\nDevice: Windows 10 version 1809 desktop.", "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 }, { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 }, { "id": 1171, "state": "closed", "name": "2019 Sprint 24", "startDate": "2019-11-18T16:40:09.114Z", "endDate": "2019-12-01T16:40:00.000Z", "completeDate": "2019-12-02T23:06:24.654Z", "originBoardId": 114 }, { "id": 1172, "state": "closed", "name": "2019 Sprint 25", "startDate": "2019-12-02T23:08:39.644Z", "endDate": "2019-12-15T23:08:00.000Z", "completeDate": "2019-12-16T05:54:54.518Z", "originBoardId": 114 }, { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 }, { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "451249", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue but I'm afraid to say that we would resolve this as \"Not Our Bug\". I see that this is a bug that Microsoft implements in Windows 10 Creator's Update 15063. (See https://social.msdn.microsoft.com/Forums/en-US/9f52e087-c09a-4942-87fd-9107d3419a5a/uwppasswordbox-placeholdertext-not-working-after-update-to-creators-update-15063?forum=wpdevelop). Microsoft have been ignoring this issue since 2017.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-10T06:55:28.000+0000", "updated": "2019-09-10T06:55:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }