<polymer-dragula> doesn't work in Polymer#2.0

261 Views Asked by At
<polymer-dragula>
    <div class="row-holder">
        <div class="column">
            <p>item-1</p>
        </div>
        <div class="column">
            <p>item-2</p>
        </div>
        <div class="column">
            <p>item-3</p>
        </div>
        <div class="column">
            <p>item-4</p>
        </div>
        <div class="column">
            <p>item-5</p>
        </div>
    </div>
</polymer-dragula>

This doesn't work.

2

There are 2 best solutions below

0
On

Perhaps you forgot to read the information mentioned in the github.

Information: Before bevacqua/dragula#470 gets merged into dragula this element might not work correctly inside Shadow DOM.

1
On

For drag and drop i will recommend you

polymer-sortablejs

its also available

"polymer-sortablejs": "bmwalters/polymer-sortablejs#2.0-preview" easy to handle and impliment