diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-02 11:34:23 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-02 11:34:23 +0300 |
commit | b2dcf2c21dcb62113316312dee8ea4f3abb42b52 (patch) | |
tree | 7af8a00bf0cc0ad5181e58d3e55b262b454c61dd /src | |
parent | c493a59e8973593277146254a597860fc94e6e70 (diff) |
Fix invalid attributes on FilePreview component
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index 4937eb3f1..17ef3f3ad 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -22,7 +22,7 @@ --> <template> - <file-preview v-bind="filePreview" + <div v-bind="filePreview" :tabindex="wrapperTabIndex" class="file-preview" :class="{ 'file-preview--viewer-available': isViewerAvailable, @@ -66,7 +66,7 @@ <div v-if="shouldShowFileDetail" class="name-container"> {{ fileDetail }} </div> - </file-preview> + </div> </template> <script> @@ -261,7 +261,6 @@ export default { if (this.isUploadEditor || this.isTemporaryUpload) { return { is: 'div', - tag: 'div', } } else if (this.isVoiceMessage) { return { @@ -273,7 +272,6 @@ export default { } return { is: 'a', - tag: 'a', href: this.link, target: '_blank', rel: 'noopener noreferrer', @@ -409,7 +407,7 @@ export default { }, wrapperTabIndex() { - return this.isUploadEditor ? '0' : '' + return this.isUploadEditor ? '0' : undefined }, removeAriaLabel() { |