Skip to content

Commit 4055de1

Browse files
committed
(fix) prevent file opening when selected
1 parent 21dcaa0 commit 4055de1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib/Message/MessageFiles/MessageFiles.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div
2525
class="vac-file-container"
2626
:class="{ 'vac-file-container-progress': file.progress >= 0 }"
27-
@click.stop="openFile(file, 'download')"
27+
@click="openFile($event, file, 'download')"
2828
>
2929
<div class="vac-svg-button">
3030
<slot name="document-icon">
@@ -88,8 +88,11 @@ export default {
8888
},
8989
9090
methods: {
91-
openFile(file, action) {
92-
this.$emit('open-file', { file, action })
91+
openFile(event, file, action) {
92+
if (!this.messageSelectionEnabled) {
93+
event.stopPropagation()
94+
this.$emit('open-file', { file, action })
95+
}
9396
}
9497
}
9598
}

0 commit comments

Comments
 (0)