Unstyled FileUpload updates
parent
15428c5063
commit
eee4204125
|
@ -266,7 +266,7 @@ export default {
|
||||||
},
|
},
|
||||||
onDragOver(event) {
|
onDragOver(event) {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
DomHandler.addClass(this.$refs.content, 'p-fileupload-highlight');
|
!this.isUnstyled && (this.$refs.content, '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();
|
||||||
|
@ -274,13 +274,13 @@ export default {
|
||||||
},
|
},
|
||||||
onDragLeave() {
|
onDragLeave() {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
|
!this.isUnstyled && DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
|
||||||
this.$refs.content.setAttribute('data-p-highlight', false);
|
this.$refs.content.setAttribute('data-p-highlight', false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDrop(event) {
|
onDrop(event) {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
|
!this.isUnstyled && DomHandler.removeClass(this.$refs.content, 'p-fileupload-highlight');
|
||||||
this.$refs.content.setAttribute('data-p-highlight', false);
|
this.$refs.content.setAttribute('data-p-highlight', false);
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue