Fixed #4371 - FileUpload: drag over border implementation bug

pull/4377/head
Tuğçe Küçükoğlu 2023-09-01 09:23:56 +03:00
parent 3aa6915b02
commit a71edee2fa
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ export default {
}, },
onDragOver(event) { onDragOver(event) {
if (!this.disabled) { 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); this.$refs.content.setAttribute('data-p-highlight', true);
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();