Skip to main content

Search and Top Navigation

#8047 closed bug (duplicate)

Opened January 22, 2012 05:24PM UTC

Closed January 22, 2012 07:39PM UTC

Last modified January 22, 2012 07:39PM UTC

Object is not deactivate

Reported by: imthehell Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.17
Keywords: Cc:
Blocked by: Blocking:
Description

After the drop function is executed, if the accept function of the object no longer return true (because the drop function has changed some paramenters of the dragged object like class ecc.) the object is not deactivated. The problem is this "if":

 if (!this.options.disabled && this.visible && this.accept.call(this.element[0], (draggable.currentItem || draggable.element))) {
                    this.isout = 1; this.isover = 0;
                    this._deactivate.call(this, event);
                }

the only objects that will be deactivated are those whose the accept function return true. If the accept function no longer return true they remain activated.

It should, however, disable all objects in all cases.

Attachments (0)
Change History (2)

Changed January 22, 2012 07:39PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Changed January 22, 2012 07:39PM UTC by scottgonzalez comment:2

Duplicate of #8046.