diff --git a/src/components/MdField/MdFile/MdFile.vue b/src/components/MdField/MdFile/MdFile.vue index e7d362eb8..ba9459291 100644 --- a/src/components/MdField/MdFile/MdFile.vue +++ b/src/components/MdField/MdFile/MdFile.vue @@ -42,7 +42,7 @@ return names.join(', ') }, getFileName (files, target) { - if (!files) { + if (!files || files.length === 0) { return target.value.split('\\').pop() }