[TIMOB-24460] Android: TextField with passwordMask fires unwanted `change` event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-10T14:05:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.2.0 |
Components | n/a |
Labels | android, event, qe-6.2.0 |
Reporter | Creative |
Assignee | Abir Mukherjee |
Created | 2017-03-07T11:27:31.000+0000 |
Updated | 2017-06-30T13:56:28.000+0000 |
Description
When assigning
passwordMask
to a TextField input, a change
event is called in the controller. This should not happen. Bug does not occur on iOS.
Testcase:
*Controller: index.js*
$.password.addEventListener('change', function(e) {
Ti.API.error(JSON.stringify(e));
})
$.index.open();
*View: index.xml*
<Alloy>
<Window class="container">
<TextField id="password" passwordMask="true" />
</Window>
</Alloy>
Hello, Not sure what's the issue here?! In your code you are calling change event listener in your index.js. and you are saying unwanted change event??!!! Remove the event listener. Thanks.
Do you even code JavaScript? Im *attaching* an event listener and a *change* event is called for no reason. The *change* event is triggered upon opening the app (nothing should have triggered)
Hello, My mistake. I see the behavior happening in Android and not in iOS. I will forward the ticket for a fix. Thanks.
No problem & thanks
PR https://github.com/appcelerator/titanium_mobile/pull/8983 https://github.com/appcelerator/titanium_mobile/pull/8996
[~mchen] Can you update the fixVersion for this ticket?
{noformat} SDK Version : Local 6.2.0 Mac OS Version : 10.12.4 Appc CLI : 6.2.0 Appc NPM : 4.2.9 Node : v4.6.0 Device: Nexus 5x(6.0.1) Pixel XL(7.1.2) Emulator: (6.0), (4.4.2) {noformat} Using above env passed FR. After merge, the changes are present in
6.2.0.v20170630052324
. *Closing*