Results 1 to 5 of 5

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

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    220
    Vote Rating
    1
      0  

    Default [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
      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
      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 User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      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

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    11
      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

Posting Permissions

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