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

onUpdate event does not run on Chrome 62 #30

Open
FQZhang opened this issue Nov 14, 2017 · 5 comments
Open

onUpdate event does not run on Chrome 62 #30

FQZhang opened this issue Nov 14, 2017 · 5 comments

Comments

@FQZhang
Copy link

FQZhang commented Nov 14, 2017

I update Chrome to 62, vue-sortable does not trigger onUpdate event.
Other people using Chrome 61 don't have this problem

html by jQuery
$('<ul class="me-slide-title-wrap" v-sortable="options"></ul>');
vue code
 Vue.use(Sortable);
    this.vue = new Vue({
      el,
      data () {
        return {
          slides,
          currentSlide,
          dragged: false,
          options: {
            onUpdate: this.onUpdate,
          },
        };
      },
      methods: {
        onUpdate (event) {
          console.log('update', this.dragged)
          updateSlides(event);
        },
        active(id) {
          console.log('active')
        },
        dragenter (id) {
          console.log('drag enter', this.dragged);
        },
        dragleave () {
          console.log('drag leave', this.dragged);
        },
        dragstart () {
          console.log('drag start', this.dragged);
        },
        dragend () {
          console.log('drag end', this.dragged);
          this.dragged = false;
        },
      },
    });
@FQZhang
Copy link
Author

FQZhang commented Nov 15, 2017

Hi sagalbot,

I create pull request to solve this issue. Could you please check and merge it
Thanks

@seedgabo
Copy link

any updates about this?

@BakerCo
Copy link

BakerCo commented Jan 19, 2018

any updates?

@FQZhang
Copy link
Author

FQZhang commented Jan 22, 2018

Use passive mode

@seedgabo
Copy link

so the repository is abandoned? @sagalbot

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

3 participants