-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FileInput] Fix uploading the same file twice by drag&drop (#2865)
* Fix #2849 by making the component more robust * Fix tests * Fix z-index for content part * Fix tests, remove superfluous space * Disable paste functionality for now
- Loading branch information
Showing
11 changed files
with
111 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tests/Core/InputFile/FluentInputFileTests.FluentInputFile_Default.verified.razor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/Core/InputFile/FluentInputFileTests.FluentInputFile_Disabled.verified.razor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
.../Core/InputFile/FluentInputFileTests.FluentInputFile_ProgressTemplate.verified.razor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
|
||
<div class="fluent-inputfile-container" blazor:ondragenter="1" blazor:ondragenter:stoppropagation="" blazor:ondragover="2" blazor:ondragover:stoppropagation="" blazor:ondragleave="3" blazor:ondragleave:stoppropagation="" blazor:ondragend="4" b-72uj7bp8pi=""> | ||
<div class="inputfile-content" style="z-index: 999" b-72uj7bp8pi="">Sample description | ||
<div class="inputfile-progress" style="" b-72uj7bp8pi="">ProgressFileDetails { Index = 0, Name = , Percentage = 0 }</div> | ||
</div> | ||
<div class="inputfile-content" style="z-index: 991" b-72uj7bp8pi=""> | ||
Sample description | ||
<div class="inputfile-progress" style="" b-72uj7bp8pi="">ProgressFileDetails { Index = 0, Name = , Percentage = 0 }</div> | ||
</div> | ||
<div style="grid-column: 1; grid-row: 1; " b-72uj7bp8pi=""> | ||
<input id="xxx" accept="" type="file" blazor:elementreference="xxx"> | ||
</div> | ||
</div> | ||
</div> |
14 changes: 8 additions & 6 deletions
14
...s/Core/InputFile/FluentInputFileTests.FluentInputFile_UploadCompleted.verified.razor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
|
||
<div class="fluent-inputfile-container" blazor:ondragenter="1" blazor:ondragenter:stoppropagation="" blazor:ondragover="2" blazor:ondragover:stoppropagation="" blazor:ondragleave="3" blazor:ondragleave:stoppropagation="" blazor:ondragend="4" b-72uj7bp8pi=""> | ||
<div class="inputfile-content" style="z-index: 999" b-72uj7bp8pi="">Sample description | ||
<div class="inputfile-progress" style="visibility: visible;" b-72uj7bp8pi=""> | ||
<fluent-progress min="0" max="100" value="100" blazor:elementreference=""></fluent-progress> | ||
<br b-72uj7bp8pi="">Completed</div> | ||
</div> | ||
<div class="inputfile-content" style="z-index: 991" b-72uj7bp8pi=""> | ||
Sample description | ||
<div class="inputfile-progress" style="visibility: visible;" b-72uj7bp8pi=""> | ||
<fluent-progress min="0" max="100" value="100" blazor:elementreference=""></fluent-progress> | ||
<br b-72uj7bp8pi="">Completed | ||
</div> | ||
</div> | ||
<div style="grid-column: 1; grid-row: 1; " b-72uj7bp8pi=""> | ||
<input id="xxx" multiple="" accept="image/*" type="file" blazor:elementreference=""> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters