Vue-grid-layout: How to prevent draggable event in content?

Created on 12 Dec 2017  路  2Comments  路  Source: jbaysolutions/vue-grid-layout

I want to prevent draggable event in the child of grid-item. For example:

<grid-item v-for="item in layout"
                    :x="item.x"
                    :y="item.y"
                    :w="item.w"
                    :h="item.h"
                    :i="item.i"
    <div style="height:50%; width:50%; background:black"></div>
</grid-item>

I want to prevent draggable event when I drag the div. In my div, there is a map component , it needs drag event alone, but I did not find the way to prevent it . can anyone help me?

question

Most helpful comment

All 2 comments

I'm sorry, I have just read this example, and solved my problem. Thanks for your reply!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MLongz picture MLongz  路  7Comments

nosizejosh picture nosizejosh  路  6Comments

terrygogo picture terrygogo  路  6Comments

jeremytiki picture jeremytiki  路  4Comments

RBrNx picture RBrNx  路  3Comments