Results 1 to 4 of 4

Thread: Subsequent button actions not possible on single tap

  1. #1

    Default Subsequent button actions not possible on single tap

    Button actions are not being fired on single tap on a multi-panel screen. But on double tap the same is being fired.

    The screen has multiple panels. Attaching the code below :

    Code:
    Ext.define('SenchaApp.view.Main', {    extend:'Ext.Container',
        xtype: 'main',
        requires: ['SenchaApp.view.panel1','SenchaApp.view.panel2'],
        config: {items: [{xtype : 'panel1'},
    				{xtype : 'panel2'},]}
    });
    Code:
    Ext.define('SenchaApp.view.panel1',{
        extend: 'Ext.form.Panel',
        xtype: 'panel1',
        config: {
            title: 'panel1',
            docked : 'left',
    		style : 'width: 5em; height: 5em;',
    		layout : 'vbox',
            items: [{
    					xtype: 'button',
    					text: 'Display',
    					listeners: {
    					tap : function(){
    						alert('Display tapped');
    						Ext.ComponentQuery.query('#board')[0].setValue("Displayed");
    				}}},{	xtype: 'button',
    						text: 'Alert',
    						listeners: {
    						tap : function(){
    							alert('Alert');
    						}}
    				}]}
    });
    Code:
    Ext.define('SenchaApp.view.panel2',{
    	extend:'Ext.Container',
    	alias:'panel2',
    	xtype: 'panel2',
    	requires : ['SenchaApp.view.panel3'],
    	config:{	
    		style : 'height: 100%;',
    		layout:{
    			type:'card'
    		},
    		items : [{
    			xtype : 'panel3',
    		}]
    	}
    });
    Code:
    Ext.define('SenchaApp.view.panel3',{
    	extend:'Ext.Panel',
    	alias:'panel3',
    	xtype: 'panel3',
    	requires : ['SenchaApp.view.custompanel'],
    	config:{
    		style : 'height: 100%;',
    		items : [{	xtype : 'textfield',
    					label : 'BOARD',
    					itemId : 'board'
    				},{
    					xtype : 'button',
    					text : 'SUBMIT',
    					itemId :'submit',
    					listeners: {
    					tap : function(){
    						alert('Submit');
    					}}
    				}]
    	}
    });
    Behavior : On clicking the 'Display' button, Display message is shown in the textbox. On single tapping the alert, no alert box is show. The same behavior is shown for 'submit' button.

    Expected : On single tap of 'Alert' button, an alert should be shown.

    Anyone faced any similar scenarios ? Please advise.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Is the function being fired tho?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3

    Default

    No actions are being fired on single tap.

    Are there any focus related issues on multipanel windows ?

  4. #4

    Default

    Anybody have any work around for this ?
    Seems like some focus issue. Not sure if this is a bug.

    Help would be highly appreciated.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •