Commit 7d5f748
authored
refactor(ui5-file-uploader): remove form element and cleanup (#12789)
* File input can reset by assigning `new DataTransfer().files` directly, so there's no need to create an extra `<form>` element.
* An empty file input already returns `null`, so you don't need to create a temporary input element just to retrieve its default value.1 parent 5f8bf37 commit 7d5f748
2 files changed
+4
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | 307 | | |
310 | 308 | | |
311 | 309 | | |
| |||
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 489 | | |
496 | 490 | | |
497 | 491 | | |
498 | 492 | | |
499 | 493 | | |
500 | 494 | | |
501 | 495 | | |
502 | | - | |
| 496 | + | |
503 | 497 | | |
504 | 498 | | |
505 | 499 | | |
| |||
515 | 509 | | |
516 | 510 | | |
517 | 511 | | |
518 | | - | |
| 512 | + | |
519 | 513 | | |
520 | 514 | | |
521 | 515 | | |
| |||
621 | 615 | | |
622 | 616 | | |
623 | 617 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | 618 | | |
637 | 619 | | |
638 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments