Skip to content

Commit 45f2172

Browse files
authored
Merge pull request #8170 from nextcloud-libraries/backport/8169/main
feat(NcListItem): emit dragstart event
2 parents 23d0966 + 3fadc7b commit 45f2172

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)