diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 561a5a98fb..fe28e5f3c1 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -63,10 +63,11 @@ const Attachment = { return this.type === 'html' || this.type === 'audio' }, useModal () { - return this.size === 'hide' ? ['image', 'video', 'audio'] + const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio'] : this.mergedConfig.playVideosInModal ? ['image', 'video'] : ['image'] + return modalTypes.includes(this.type) }, ...mapGetters(['mergedConfig']) },