Skip to main content

Search and Top Navigation

#4123 closed bug (invalid)

Opened February 11, 2009 03:24PM UTC

Closed November 12, 2012 09:10AM UTC

Problem dragabble/droppable ie link Optionen

Reported by: designerno1 Owned by: designerno1
Priority: minor Milestone: 2.0.0
Component: ui.droppable Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:
Description

Hi there we have a problem we have a draggable that contains a link

<div class="dragdrop"><a class="buy_drag" href="somelink.html"><img

src="somesrc" /></div></div>

the click is returned false but the drop execute that click or the

href and i don't know why

when the draggable is in the droppable and the mousebutton is released the href ist executed by it selfe don't know why

$('.buy_drag').live('click',function(){return false;});

$(".dragdrop").draggable({revert: 'invalid', helper:'clone'});

makes it draggable

$("#putin_cart").droppable({

accept: '.dragdrop',

drop: function(ev, ui) {

// do something

}

});

makes the droppable zone

firefox handels all right but if you drag the element in IE and put it

on the droppable zone the link in the a href is executed

if i remove the helper:'clone' option it works.

or if i make an alert in the drop: function(){alert('fsd');}

if i remove the revert: 'invalid' the a href is executed even if the

draggable isn't in droppable and the mousebutton is released

Attachments (0)
Change History (5)

Changed February 12, 2009 11:32PM UTC by jzaefferer comment:1

milestone: TBD1.6

Changed March 08, 2009 02:35PM UTC by rdworth comment:2

milestone: 1.71.8

Changed October 11, 2012 02:49PM UTC by scottgonzalez comment:3

milestone: 1.9.02.0.0

Changed October 29, 2012 03:49AM UTC by mikesherov comment:4

owner: → designerno1
status: newpending

Thanks for taking the time to contribute to the jQuery UI project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the git version of both jQuery UI and jQuery to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/ZgAqH/ Open the link and click to "Fork" (in the top menu) to get started.

Changed November 12, 2012 09:10AM UTC by trac-o-bot comment:5

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!