sorting with meta boxes on admin page

Issue #1 resolved
Rafi Yagi created an issue

When dragging a new component widget to the sortable <div> on the admin page, and then sorting it, I am getting this error:

Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'toArray' 

Originates in postbox.js. I think it has something to do with the fact that I'm creating new <divs> in the sortable entity on the DOM.

Comments (2)

  1. Rafi Yagi reporter

    Fixed the issue by unwrapping meta-boxes of their parent div (<div id="advanced-sortables">) which was also a sortable div which is why I was getting initialization errors.

  2. Log in to comment