{ "id": "141779", "key": "TIMOB-18256", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-07-28T21:35:19.000+0000", "created": "2014-12-17T16:23:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "events", "textfield", "type" ], "versions": [], "issuelinks": [ { "id": "57175", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "172731", "key": "TIMOB-26646", "fields": { "summary": "iOS: In Ti.UI.TextField 'change' event listener is called if we set a number to 'value' property", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-07-28T21:35:19.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Only on iOS, setting a TextField's (and probably others) {{value}} to the wrong type triggers the {{change}} event.\r\n\r\nThe following code logs *is changed* once on iOS if you replace {{\"hello\"}} with {{123}}, but doesn't log anything on Android.\r\n\r\nI expect the behaviour to be as on Android.\r\n\r\n{code:javascript}\r\nvar w = Ti.UI.createWindow();\r\nvar t = Ti.UI.createTextField();\r\nt.addEventListener('change', function(e) { console.debug('is changed'); });\r\nw.add(t);\r\nw.open();\r\nt.value = 'hello';\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Setting TextField.value to wrong type triggers change event", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "3.4.1.GA", "closedSprints": [ { "id": 1198, "state": "closed", "name": "2020 Sprint 12", "startDate": "2020-06-08T21:06:41.849Z", "endDate": "2020-06-19T21:06:00.000Z", "completeDate": "2020-06-19T15:54:38.493Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455810", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11778\r\n\r\nTest Case -\r\n\r\n{code:java}\r\n\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar textFieldA = Titanium.UI.createTextField({\r\n\theight:'35dip',\r\n\twidth:'100dip',\r\n\ttop:'60dip',\r\n \tvalue:0,\r\n\tfont:{fontSize:'18sp', fontWeight:'normal', fontFamily:'Tahoma'},\r\n\tcolor:'#808080'\r\n});\r\n \r\nwin.add(textFieldA);\r\n \r\ntextFieldA.addEventListener('change', function() {\r\n\tTi.API.info('Listener Called');\r\n});\r\n \r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-17T01:13:13.000+0000", "updated": "2020-06-17T01:15:31.000+0000" }, { "id": "455971", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-30T21:08:40.000+0000", "updated": "2020-06-30T21:08:40.000+0000" }, { "id": "455980", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-07-01T14:58:55.000+0000", "updated": "2020-07-01T14:58:55.000+0000" }, { "id": "456260", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.1.0.v20200727104531\r\nAppc CLI: 8.1.0-master.7\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0 Beta\r\nDevice: iPhone 7Plus(v13.5.1), iOS simulator(v14.0Beta)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-28T21:35:19.000+0000", "updated": "2020-07-28T21:35:19.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }