Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16496] iOS: Blur event fires twice on TextField

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-02-23T16:41:42.000+0000
Affected Version/sRelease 3.2.1
Fix Version/sRelease 4.0.0
ComponentsiOS
Labelsalloy, blur, event, qe-4.0.0, regression, sdk3
ReporterRoni Cohen
AssigneeVishal Duggal
Created2014-02-23T21:37:51.000+0000
Updated2015-03-05T22:53:35.000+0000

Description

Here is the example XML:
<View class="row" top="-30px">
  <TextField class="tikklrUploadTextField" layout="horizontal" id="tags" onBlur="tagsBlur" onFocus="uploadFocus" hintText="TAGS"/>
</View>

Comments

  1. Ritu Agrawal 2014-02-24

    Moving this ticket to engineering as I can reproduce this issue with 3.2.1 but not with 3.2.0 release. Focus event fires only once as expected but Blur event fires twice with 3.2.1 but once with 3.2.0 release.
       var win = Ti.UI.createWindow({
         backgroundColor: 'white'
       });
       
       var textField = Ti.UI.createTextField({
         borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
         color: '#336699',
         top: 10, left: 10,
         width: 250, height: 60
       });
       
       textField.addEventListener('blur',function(){ alert("Blur fired");});
       textField.addEventListener('focus',function(){ alert("Focus fired");});
       
       win.add(textField);
       win.open();
       
  2. Ingo Muschenetz 2014-06-23

    [~ragrawal] Is it possible to test this in 3.3.0? We believe it may be fixed.
  3. adam kearsley 2014-06-27

    [~Ingo] I also have this issue, its annoying as I'm validating text fields with regex and its displaying my alerts twice when validation fails. Tested on SDK: 3.3.0.RC, 3.2.3.GA, 3.2.2.GA -- same issue on all.
  4. Shameer Jan 2014-08-14

    Issue reproduces Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
  5. Jon Alter 2014-09-05

    Looks like the issue was caused by this PR: https://github.com/appcelerator/titanium_mobile/pull/5184 Since this was a fix for TIMOB-15967 which has been reopened, it would be good to fix both this ticket and TIMOB-15967 at the same time.
  6. Vishal Duggal 2015-02-20

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6656
  7. Eric Wieber 2015-03-05

    Verified fixed, using: Titanium SDK 4.0.0.v20150303161012 Studio 4.0.0.201502171827 CLI 3.4.2-rc4 Xcode 6.2b5 Blur event only fires once

JSON Source