Skip to content

Commit 8a337ac

Browse files
Merge pull request #4130 from SoyDiego/fix-fileupload-added-highlight-class
Added .p-fileupload-highlight class
2 parents dabadb8 + 6e5a4db commit 8a337ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: components/lib/fileupload/FileUpload.vue

+2
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,15 @@ export default {
265265
},
266266
onDragOver(event) {
267267
if (!this.disabled) {
268+
this.$refs.content.classList.add('p-fileupload-highlight');
268269
this.$refs.content.setAttribute('data-p-highlight', true);
269270
event.stopPropagation();
270271
event.preventDefault();
271272
}
272273
},
273274
onDragLeave() {
274275
if (!this.disabled) {
276+
this.$refs.content.classList.remove('p-fileupload-highlight');
275277
this.$refs.content.setAttribute('data-p-highlight', false);
276278
}
277279
},

0 commit comments

Comments
 (0)