Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Community Support Team
    Join Date
    Jun 2010
    Posts
    220
    Vote Rating
    0
    meyerovb is on a distinguished road

      0  

    Default [FIXED-141] Hyperlinks on activating card recieve click events from previous card

    [FIXED-141] Hyperlinks on activating card recieve click events from previous card


    Sencha Touch version tested:
    • 0.9 rev 1
    • only default ext-all.css

    Platform tested against:
    • iOS 4
    Description:
    • On an iPhone tap events that change cards are carrying a click event over to the next card
    Test Case:

    Code:
    Ext.setup({ onReady: function () {
        var a = 'a'; for (var x = 0; x < 8; x++) a = a + ' ' + a;
    
        window.panel = new Ext.Panel({ fullscreen: true, layout: 'card',
            items: [{ xtype: 'panel',
                items: [{ xtype: 'button', text: 'Passes Click Event', handler: function () { panel.setCard(1); } },
                        { html: '<br/><a href="javascript:panel.setCard(1);">Not Passing Click Event</a>'}]
            },
            { xtype: 'panel', html: '<a href="javascript:alert(1);">' + a + '</a>'}]
        });
    }
    });

  2. #2
    Ext User
    Join Date
    Jun 2010
    Posts
    63
    Vote Rating
    0
    orangechicken is on a distinguished road

      0  

    Default


    This appears to be happening in 0.93 still. Additionally, it appears to be some race condition somewhere. If I delay creation of my clickable element by a few hundred milliseconds after the trigger event (350ms and the 'show' event, respectively, in my case) then the issue "goes away".

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    63
    Vote Rating
    0
    orangechicken is on a distinguished road

      0  

    Default


    Additionally, it's just hyperlinks. In my case, it's buttons in a floating, modal window that are receiving clicks from a tabbar when a particular tab is activated (the tab directly under the modal window).

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by orangechicken View Post
    If I delay creation of my clickable element by a few hundred milliseconds after the trigger event (350ms and the 'show' event, respectively, in my case) then the issue "goes away".
    We're looking into this. The current workaround is to delay the running of the code for around 400 ms like so:
    Code:
    handler: function () { 
       (function() {
          panel.setCard(1); 
       ).defer(400);
    }
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    This has been fixed and will be part of the next release.

Similar Threads

  1. card undefined @ card layout
    By Johnnyger in forum Sencha Touch 1.x: Discussion
    Replies: 10
    Last Post: 30 Aug 2010, 5:47 AM
  2. Replies: 8
    Last Post: 20 Aug 2010, 12:12 AM
  3. Second Card of Card Layout Is Blank When Showing It More Than Once
    By achapman in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 5 Aug 2010, 5:25 AM
  4. Preventing links on a card being switched to from activating
    By Rohall in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 23 Jul 2010, 1:16 PM
  5. Hyperlinks on activating card recieve click events from previous card
    By meyerovb in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 16 Jul 2010, 12:27 PM

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar