Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use inputElement, that we know is safe.
  • Loading branch information
ditman committed Feb 23, 2021
commit 02f936cd13b323055b57f9bcd5526e6d0a38c488
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class DomHelper {
);

inputElement.onChange.first.then((_) {
final List<XFile> files = input!.files!.map(_convertFileToXFile).toList();
input.remove();
final List<XFile> files = inputElement.files!.map(_convertFileToXFile).toList();
inputElement.remove();
completer.complete(files);
});

Expand All @@ -46,7 +46,7 @@ class DomHelper {
code: error.type,
message: error.message,
);
input!.remove();
inputElement.remove();
completer.completeError(platformException);
});

Expand Down