Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't create a dragging element for the inner component #27

Closed
syshen opened this issue Nov 2, 2016 · 3 comments
Closed

Doesn't create a dragging element for the inner component #27

syshen opened this issue Nov 2, 2016 · 3 comments

Comments

@syshen
Copy link

syshen commented Nov 2, 2016

I am creating a dashboard app with widgets and using Bootstrap for the responsive.

This is what I am doing:

        <div class="row">
          <draggable :list="widgets">
              <div v-for="(widget, index) in widgets" :class="'col-lg-' + widget.cols">
                <chart-widget :setting="widget" v-on:remove="removeWidget"></chart-widget>
              </div>
          </draggable>
        </div>

chart-widget is a component to show the widget. I wrap the chart-widget inside a col <div>. The dragging works, but it doesn't show a dragging element when I drag. The behavior looks like this: https://youtu.be/f1sAd5VDLeQ

How could I make this work?

@syshen syshen changed the title Doesn't create a ghost element for the inner component Doesn't create a dragging element for the inner component Nov 2, 2016
@syshen
Copy link
Author

syshen commented Nov 2, 2016

I think this issue is because I am using Google Charts inside the widget. Sortable.js cannot render the chart while dragging the item around. I might need to come out a different approach to solve this issue.

@David-Desmaisons
Copy link
Member

Hey @syshen , as you mentioned this issue is linked to Sortable and not vue.draggable. Without any jsfiddle, it is quite hard to provide you help. Did you try to play arround with ghostClass and animation options of the Sortable constructor? If the problem persits, you should open an issue for the Sortable project.

@David-Desmaisons
Copy link
Member

Please open an issuefor Sortable project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants