Skip to content

Commit 3fadc7b

Browse files
mejo-backportbot[bot]
authored andcommitted
feat(NcListItem): emit dragstart event
Needed for Collectives to alter the DataTransfer property of the DragEvent Signed-off-by: Jonas <jonas@freesources.org>
1 parent 23d0966 commit 3fadc7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/NcListItem/NcListItem.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ The `actions-icon` slot can be used to pass icon to the inner NcActions componen
469469
@focus="showActions"
470470
@focusout="handleBlur"
471471
@click="onClick($event, navigate, routerLinkHref)"
472+
@dragstart="$emit('dragstart', $event)"
472473
@keydown.esc="hideActions">
473474
<!-- @slot This slot is used for the NcAvatar or icon, the content of this slot must not be interactive -->
474475
<slot name="icon" />
@@ -700,6 +701,7 @@ export default {
700701
701702
emits: [
702703
'click',
704+
'dragstart',
703705
'update:menuOpen',
704706
],
705707

0 commit comments

Comments
 (0)