PDA

View Full Version : [FIXED-143] Launching overlay with links cause the links to be clicked



tfrugia
15 Jul 2010, 3:03 PM
We have a list of contact names, that when clicked show an overlay with name, address, email address, phone number, etc.

On an iPhone (having a hard time duplicating on an iPod touch), when our users click on the contact name, if it lines up with the overlay's link the link gets clicked.

You can see this easily by modifying the "list" example that ships with sencha, and adding this listener:



var groupingBase = {
listeners: {
'selectionchange': {
fn: function(dv, selections, rowData){
var overlay = new Ext.Panel({
scroll: 'vertical',
floating: true,
modal: true,
centered: true,
width: 320,
height: 300,
styleHtmlContent: true,
html: 'Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>Label: <a href="tel:1112223333">Call me at (111) 222-3333</a><br>',
scroll: 'vertical'
});
overlay.show();
}
}
}
...
...


A quick workaround would greatly be appreciated.

tfrugia
16 Jul 2010, 12:25 PM
Just wanted to followup in case my explanation wasn't clear, as this is a pretty major issue for us.

When the user clicks on an item in the list using the above code, the phone number 1112223333 tries to dial, even though it was not clicked.

Jamie Avins
19 Jul 2010, 9:34 AM
Why are you using an anchor tag if you don't want it clickable?

tfrugia
19 Jul 2010, 10:59 AM
We do want it clickable. The issue is that the anchor tag automatically gets clicked when the overlay opens, because of its position above the contact list.

Behavior we expect:
The user scrolls through a list of contacts, taps on a contact, the overlay displays, and the user reads the details and can click on the phone # to call the contact.

Behavior we are getting:
The user scrolls through a list of contacts, taps on a contact, the overlay displays and the phone # is automatically dialed.


If you add the listener I pasted above to your list example you'll see the behavior I'm trying to explain.

Jamie Avins
19 Jul 2010, 11:10 AM
I see, the new bug guideline post should help a lot with this type of confusion.

I'll open up the bug so we can fix it.

tfrugia
19 Jul 2010, 12:18 PM
Thanks much. I actually looked for the bug guidelines sticky prior to posting this bug. I'll follow that guide next time.

meyerovb
19 Jul 2010, 9:27 PM
I believe this may be a dupe of bug 141 (http://www.sencha.com/forum/showthread.php?104629-OPEN-141-Hyperlinks-on-activating-card-recieve-click-events-from-previous-card)

Rohall
28 Jul 2010, 7:37 AM
Any updates on this bug? I'd like to use a few links in an app, but I don't have a good work around.

TommyMaintz
1 Sep 2010, 6:56 PM
Sorry for the delay. A solution will be part of the refactored TouchEventManager. Unfortunately this won't make it into tomorrow's 0.94 release. We'll keep you guys updated on this one.

TommyMaintz
24 Sep 2010, 5:35 AM
This seems to be fixed with the new gesture management system that will be part of the next release.

meyerovb
24 Sep 2010, 5:39 AM
Tommy, you may want to check bug 141 to see if it's been corrected as well, this was never marked as a dupe of it.

TommyMaintz
24 Sep 2010, 5:42 AM
I just fixed 141 as well.

lencoo12
27 Sep 2010, 7:29 PM
I see, the new bug guideline post should help a lot with this type of confusion.

I'll open up the bug so we can fix it.
Thanks much. I actually looked for the bug guidelines sticky prior to posting this bug. I'll follow that guide next time.