sorting with meta boxes on admin page
Issue #1
resolved
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)
-
reporter -
reporter - changed status to resolved
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.
- Log in to comment
Right now I'm remedying the issue by refreshing the page on the "stop" event.