mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Merge pull request #4130 from SoyDiego/fix-fileupload-added-highlight-class
Added .p-fileupload-highlight class
This commit is contained in:
commit
8a337acdde
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue