Merge pull request #4130 from SoyDiego/fix-fileupload-added-highlight-class
Added .p-fileupload-highlight classpull/4295/head
commit
8a337acdde
|
@ -265,6 +265,7 @@ export default {
|
||||||
},
|
},
|
||||||
onDragOver(event) {
|
onDragOver(event) {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
|
this.$refs.content.classList.add('p-fileupload-highlight');
|
||||||
this.$refs.content.setAttribute('data-p-highlight', true);
|
this.$refs.content.setAttribute('data-p-highlight', true);
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -272,6 +273,7 @@ export default {
|
||||||
},
|
},
|
||||||
onDragLeave() {
|
onDragLeave() {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
|
this.$refs.content.classList.remove('p-fileupload-highlight');
|
||||||
this.$refs.content.setAttribute('data-p-highlight', false);
|
this.$refs.content.setAttribute('data-p-highlight', false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue