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

Add drop active event #346

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JoshMoreno
Copy link

This should resolve #333 and #254.

And for anyone who's having trouble; until this is merged you have two options:

Workaround 1

Use my package that fixes this issue until pr is merged P.S. I don't plan on maintaining the fork, just needed this issue fixed.

yarn add "JoshMoreno/vue-upload-component#add-dropActive-event"
# or
npm install --save "JoshMoreno/vue-upload-component#add-dropActive-event"

Workaround 2

Wait until all child components have been rendered and store in data so it's reactive
https://vuejs.org/v2/api/#mounted

<template>
    <!-- store the component as a ref -->
    <VueUploadComponent ref="uploader"></VueUploadComponent>
</template>

<script>
    // then add a new data prop
    data() {
        uploader: null
    }

    // then add this to your mounted method
    mounted() {
        this.$nextTick(function(){
            this.uploader = this.$refs.uploader
        })
    }
</script>

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

Successfully merging this pull request may close these issues.

FR @dropActive event
1 participant