Skip to content

Commit b592ac2

Browse files
authored
Merge pull request #8169 from nextcloud-libraries/feat/nclistitem_emit_dragstart
[stable8] feat(NcListItem): emit dragstart event
2 parents c069f97 + 1527042 commit b592ac2

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
@@ -471,6 +471,7 @@ The `actions-icon` slot can be used to pass icon to the inner NcActions componen
471471
@focus="showActions"
472472
@focusout="handleBlur"
473473
@click="onClick($event, navigate, routerLinkHref)"
474+
@dragstart="$emit('dragstart', $event)"
474475
@keydown.esc="hideActions">
475476
<!-- @slot This slot is used for the NcAvatar or icon, the content of this slot must not be interactive -->
476477
<slot name="icon" />
@@ -715,6 +716,7 @@ export default {
715716
716717
emits: [
717718
'click',
719+
'dragstart',
718720
'update:menuOpen',
719721
],
720722

0 commit comments

Comments
 (0)