Skip to content

dropActive bug when upload component is wrapped by other component #254

@fiter92

Description

@fiter92

I'm using vue-upload-component inside vue-js-modal component:

<modal name="popup">
  <file-upload ref="upload" :drag="true" ... > 
    <button>Load files</button> 
  </file-upload> 
  <div v-show="$refs.upload && $refs.upload.dropActive" class="drop-active">
    <h3>Drop files to upload</h3>
  </div> 
</modal>

When I'm opening a modal and trying to drag files - the .drop-active doesn't showing up ( but files dragging properly)
And .drop-active doesn't showing up until I have drag or upload files using a button. After that it works fine.
It happens only if vue-upload-component is inside vue-js-modal component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions