diff --git a/components/lib/fileupload/FileUpload.vue b/components/lib/fileupload/FileUpload.vue index a5be576d1..fdfd655c4 100755 --- a/components/lib/fileupload/FileUpload.vue +++ b/components/lib/fileupload/FileUpload.vue @@ -265,6 +265,7 @@ export default { }, onDragOver(event) { if (!this.disabled) { + this.$refs.content.classList.add('p-fileupload-highlight'); this.$refs.content.setAttribute('data-p-highlight', true); event.stopPropagation(); event.preventDefault(); @@ -272,6 +273,7 @@ export default { }, onDragLeave() { if (!this.disabled) { + this.$refs.content.classList.remove('p-fileupload-highlight'); this.$refs.content.setAttribute('data-p-highlight', false); } },