Opened 10 years ago

Closed 6 years ago

#4123 closed bug (invalid)

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

Change History (5)

comment:1 Changed 10 years ago by Jörn Zaefferer

Milestone: TBD1.6

comment:2 Changed 10 years ago by rdworth

Milestone: 1.71.8

comment:3 Changed 6 years ago by Scott González

Milestone: 1.9.02.0.0

comment:4 Changed 6 years ago by mikesherov

Owner: set to 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.

comment:5 Changed 6 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.