Added .p-fileupload-highlight class

This commit is contained in:
Diego 2023-07-12 19:03:07 +02:00
parent 487c2375f6
commit b9e61eaf43
2 changed files with 9 additions and 0 deletions

View file

@ -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);
}
},