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

Unable to select text when using drag handles #139

Open
xergic opened this issue Mar 6, 2025 · 0 comments
Open

Unable to select text when using drag handles #139

xergic opened this issue Mar 6, 2025 · 0 comments

Comments

@xergic
Copy link

xergic commented Mar 6, 2025

When using drag handles I'd expect the text inside an element (tape name in example below) to be selectable, but it's not.

<script setup lang="ts">
import { useDragAndDrop } from '@formkit/drag-and-drop/vue';
const [parent, tapes] = useDragAndDrop(
  [
    'Depeche Mode',
    'Duran Duran',
    'Pet Shop Boys',
    'Kraftwerk',
    'Tears for Fears',
    'Spandau Ballet',
  ],
  { dragHandle: '.drag-handle' }
);
</script>

<template>
  <ul ref="parent">
    <li v-for="tape in tapes" :key="tape" class="cassette">
      <span class="drag-handle">::</span>
      <span>{{ tape }}</span>
    </li>
  </ul>
</template>

Reproduction link: https://stackblitz.com/edit/vitejs-vite-adtpwqwq?file=src%2FApp.vue&terminal=dev (using v0.4.1)

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