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

drag and drop not working when fileUpload in a modal #452

Open
tomasoma opened this issue May 10, 2023 · 0 comments
Open

drag and drop not working when fileUpload in a modal #452

tomasoma opened this issue May 10, 2023 · 0 comments

Comments

@tomasoma
Copy link

hello
i've a modal component like this (css from bootstrap 5.0.2)

<template>
  <teleport to="body">
    <section class="position-fixed top-0 start-0 vh-100 vw-100 bg-secondary bg-opacity-50 overflow-scroll" @click="close">
      <div class="position-absolute start-50 translate-middle-x py-5" :class="modalClass.join(' ')"
        @click="(e) => { e.stopPropagation() }">
        <div class="p-3 rounded shadow bg-white">
          <div class="d-flex justify-content-between align-items-center">
            <slot name="head">titre</slot>
            <i v-if="headerCloseBtn" @click="close" class="bi bi-x fs-1"></i>
          </div>
          <main>
            <slot name="body"></slot>
          </main>
          <slot></slot>
        </div>
      </div>

    </section>
  </teleport>
</template>

and when i use FileUpload in the modal body slot the drag function does not work ....
is there any tips to make it work in a modal ?
i guess the HTML element defining the dropzone is hidden by the modal ? perhaps it would be useful to be able to define a HTML element for the dropzone ?

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

1 participant