From eee420412556866052a8eecbf779fdea621a07d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 21 Aug 2023 10:49:03 +0300 Subject: [PATCH] Unstyled FileUpload updates --- components/lib/fileupload/FileUpload.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/fileupload/FileUpload.vue b/components/lib/fileupload/FileUpload.vue index f15b57008..f9a9ac5f4 100755 --- a/components/lib/fileupload/FileUpload.vue +++ b/components/lib/fileupload/FileUpload.vue @@ -266,7 +266,7 @@ export default { }, onDragOver(event) { 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); event.stopPropagation(); event.preventDefault(); @@ -274,13 +274,13 @@ export default { }, onDragLeave() { 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); } }, onDrop(event) { 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); event.stopPropagation(); event.preventDefault();