Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    411
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default Alert buttons can be clicked multiple times

    Alert buttons can be clicked multiple times


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.1.0-b1
    • Sencha Touch 2.0.1.1

    Browser versions tested against:
    • Chrome 21.0.1180.57 for Mac
    • Android built-in browser

    DOCTYPE tested against:
    • html

    Description:
    • When you rapidly click a button on an alert/confirmation, the handler is called multiple times.

    Steps to reproduce the problem:
    • Load the code below.
    • Click "Show" to see an alert.
    • Click OK very quickly.

    The result that was expected:
    • A timestamp appears once, to indicate a click.

    The result that occurs instead:
    • Three timestamps appear, indicating that the handler was called three times. You can also see the alert start to disappear, then briefly reappear, then disappear again.

    Test Case:

    Code:
    Ext.setup({onReady: function() {
    
    	Ext.create('Ext.Container', {
    		fullscreen: true,
    		items: [{
    			xtype: 'button',
    			text: 'Show',
    			listeners: {
    				tap: function() {
    					var log = Ext.get('log');
    					log.setHtml('');
    					Ext.Msg.alert('Error', 'Click OK', function() {
    						log.setHtml(log.getHtml() + '<br >' + (new Date()) + '.');
    					});
    				}
    			}
    		},{
    			id: 'log',
    			html: ''
    		}]
    	});
    
    }});


    HELPFUL INFORMATION


    Screenshot or Video:
    • none

    See this URL for live test case: http://


    Debugging already done:
    • none

    Possible fix:
    • not provided

    Additional CSS used:
    • only default ext-all.css

    Operating System:
    • Mac OS 10.8
    • Android 4.1 on Galaxy Nexus

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This happens while the CSS3 anim is happening as the element is just shrinking correct? You would have to tap very fast (within 250 ms to see this I would think)
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    411
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    Yeah, that's probably when it's happening. I'm tapping as fast as possible.

Thread Participants: 1

Tags for this Thread