Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24460] Android: TextField with passwordMask fires unwanted `change` event

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-05-10T14:05:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
Componentsn/a
Labelsandroid, event, qe-6.2.0
ReporterCreative
AssigneeAbir Mukherjee
Created2017-03-07T11:27:31.000+0000
Updated2017-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>

Comments

  1. Sharif AbuDarda 2017-03-07

    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.
  2. Creative 2017-03-07

    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)
  3. Sharif AbuDarda 2017-03-07

    Hello, My mistake. I see the behavior happening in Android and not in iOS. I will forward the ticket for a fix. Thanks.
  4. Creative 2017-03-07

    No problem & thanks
  5. Maggie Chen 2017-04-21

    PR https://github.com/appcelerator/titanium_mobile/pull/8983 https://github.com/appcelerator/titanium_mobile/pull/8996
  6. Abir Mukherjee 2017-05-04

    [~mchen] Can you update the fixVersion for this ticket?
  7. Josh Longton 2017-06-30

    {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*

JSON Source