You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the droppable target(span) has inner HTMLElement(img) and file is dropped on inner element(img)
dropReference.EnumerateFilesAsync() is empty. But if dopped on the margin between img and span, it works
Expected behavior
dropReference.EnumerateFilesAsync() shoud not be empty irrespective of where dropped as long as it is dropped on a child of target
Project type 'Server-side'/'SSB'
Environment
Chrome
Latest
Latest
I tried to debug into the javascript blob and I see that the issue is here
var dataTransfer = this.elementDataTransfers.get(element);
if (dataTransfer) {
files = dataTransfer;
}
dataTransfer is undefined. Looking into the this.elementDataTransfers map, I noticed the key being used for the FileList is img rather than span. Which makes sense as img is the target when dropped.
Describe the bug
If the droppable target(span) has inner HTMLElement(img) and file is dropped on inner element(img)
dropReference.EnumerateFilesAsync() is empty. But if dopped on the margin between img and span, it works
To Reproduce
Expected behavior
dropReference.EnumerateFilesAsync() shoud not be empty irrespective of where dropped as long as it is dropped on a child of target
Project type
'Server-side'/'SSB'
Environment
I tried to debug into the javascript blob and I see that the issue is here
dataTransfer is undefined. Looking into the this.elementDataTransfers map, I noticed the key being used for the FileList is img rather than span. Which makes sense as img is the target when dropped.
Backtracked to this line 21
BlazorFileReader/src/Blazor.FileReader/script/FileReaderComponent.ts
Line 68 in e444312
I think ev.target should have been element which is the ElementReference(span) captured
The text was updated successfully, but these errors were encountered: