From a71edee2fa5806a908bc2e20b41010657e73719c 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: Fri, 1 Sep 2023 09:23:56 +0300 Subject: [PATCH] Fixed #4371 - FileUpload: drag over border implementation bug --- components/lib/fileupload/FileUpload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/fileupload/FileUpload.vue b/components/lib/fileupload/FileUpload.vue index f9a9ac5f4..4da6dadbb 100755 --- a/components/lib/fileupload/FileUpload.vue +++ b/components/lib/fileupload/FileUpload.vue @@ -266,7 +266,7 @@ export default { }, onDragOver(event) { if (!this.disabled) { - !this.isUnstyled && (this.$refs.content, 'p-fileupload-highlight'); + !this.isUnstyled && DomHandler.addClass(this.$refs.content, 'p-fileupload-highlight'); this.$refs.content.setAttribute('data-p-highlight', true); event.stopPropagation(); event.preventDefault();