[wp-trac] [WordPress Trac] #30998: Widgets helper position incorrect after moving out of the sidebar

WordPress Trac noreply at wordpress.org
Wed Jan 14 11:16:22 UTC 2015


#30998: Widgets helper position incorrect after moving out of the sidebar
------------------------------------+--------------------
 Reporter:  alexvorn2               |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  4.2
Component:  Widgets                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+--------------------

Comment (by utkarshd_42):

 @tyxla my bad.. I failed to  safely remove the {{{ui.item}}}
 {{{
       out: function( event, ui ) {
               if ( ui.helper != undefined ) {
                    ui.item.remove();
               }
 }}}
 A better way. Doesn't remove the {{{ui.item}}} if it has been dropped
 inside a sortable.

 > does not make much sense if the user is trying to drag it in a different
 sidebar from the one that they first rolled over.

 I completely agree with you. But as you said in your earlier comment that
 we can't simply edit the {{{draggable.js}}} . I'm trying to find a
 workaround for it. Let's see if anything else works out.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30998#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list