mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Fixed #3980: Don't allow connecting to disabled sortables.
This commit is contained in:
parent
938a95e8dc
commit
ce0daae232
@ -439,6 +439,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
|
||||
$(typeof this == 'string' ? this+'': this).each(function() {
|
||||
if($.data(this, 'sortable')) {
|
||||
var sortable = $.data(this, 'sortable');
|
||||
if (sortable.options.disabled) { return; }
|
||||
inst.sortables.push({
|
||||
instance: sortable,
|
||||
shouldRevert: sortable.options.revert
|
||||
|
Loading…
Reference in New Issue
Block a user